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