blob: 3131a715a1d47a3fc08a9352d9ab2d099e7df9d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
TESTDIR=../
include $(TESTDIR)/Rules.mak
all: dltest shared run
dltest:
$(TESTCC) $(TEST_CFLAGS) -c dltest.c -o dltest.o
$(TESTCC) $(TEST_CFLAGS) -c howdy.c -o howdy.o
shared:
$(TESTCC) $(TEST_CFLAGS) -shared -o libhowdy.so -Wl,-soname,libhowdy.so howdy.o
$(TESTCC) $(TEST_CFLAGS) -o dltest dltest.o -ldl
run:
@echo Running dltest
./dltest
clean:
rm -f *.o *.so dltest core
|