Debian Codegraph @

src/test/Makefile

raw
1 include ../../globalmakeflags
2 CFLAGS += -I..
3 BIN=configtest dbtest
4 OBJS=$(subst .c,.o,$(wildcard *.c))
5 LDFLAGS += -Wl,-rpath,$(shell cd ..; pwd) -ldl
6
7 all: $(BIN)
8
9 configtest: ../strutl.o ../configuration.o configtest.o ../debug.o
10 $(CC) $(LDFLAGS) -o $@ $^
11
12 dbtest: ../strutl.o ../configuration.o ../priority.o ../template.o ../question.o ../database.o dbtest.o ../debug.o
13 $(CC) -o $@ $^ $(LDFLAGS)
14
15 fetest: ../strutl.o ../configuration.o ../priority.o ../template.o ../question.o ../database.o ../frontend.o fetest.o
16 $(CC) -o $@ $^ $(LDFLAGS)
17
18 #strtest: ../strutl.o strtest.o
19 # $(CC) -o $@ $^ $(LDFLAGS)
20
21 clean:
22 -rm -f $(BIN) $(OBJS) *.dat *~