2012-05-24 12:43:32 +02:00
|
|
|
|
|
|
|
|
OUTPUTS := dns.o \
|
2012-06-02 03:35:25 +02:00
|
|
|
dns \
|
|
|
|
|
base64.o \
|
2013-01-10 22:33:58 +01:00
|
|
|
base64 \
|
|
|
|
|
base64_sem1.o \
|
2013-01-13 18:19:59 +01:00
|
|
|
base64_sem1 \
|
|
|
|
|
base64_sem2.o \
|
|
|
|
|
base64_sem2
|
2012-05-24 12:43:32 +02:00
|
|
|
|
|
|
|
|
TOPLEVEL := ../
|
|
|
|
|
|
|
|
|
|
include ../common.mk
|
2012-10-10 16:45:10 +02:00
|
|
|
CFLAGS += $(pkg-config --cflags glib-2.0)
|
|
|
|
|
LDFLAGS += $(pkg-config --libs glib-2.0)
|
|
|
|
|
|
2012-05-24 12:43:32 +02:00
|
|
|
|
|
|
|
|
|
2013-01-13 18:19:59 +01:00
|
|
|
all: dns base64 base64_sem1 base64_sem2
|
2012-05-24 12:43:32 +02:00
|
|
|
|
2012-05-24 15:51:42 +02:00
|
|
|
dns: LDFLAGS:=-L../src -lhammer $(LDFLAGS)
|
2013-02-17 15:24:13 +01:00
|
|
|
dns: dns.o rr.o dns_common.o
|
2012-05-24 12:43:32 +02:00
|
|
|
$(call hush, "Linking $@") $(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
2013-02-17 15:47:18 +01:00
|
|
|
dns.o: ../src/hammer.h dns_common.h ../src/glue.h
|
|
|
|
|
rr.o: ../src/hammer.h rr.h dns_common.h ../src/glue.h
|
|
|
|
|
dns_common.o: ../src/hammer.h dns_common.h ../src/glue.h
|
2012-06-02 03:35:25 +02:00
|
|
|
|
2013-02-17 15:47:18 +01:00
|
|
|
base64: LDFLAGS:=-L../src -lhammer $(LDFLAGS)
|
|
|
|
|
base64: base64.o
|
2012-06-02 03:35:25 +02:00
|
|
|
$(call hush, "Linking $@") $(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
2013-02-17 15:47:18 +01:00
|
|
|
base64_sem1: LDFLAGS:=-L../src -lhammer $(LDFLAGS)
|
|
|
|
|
base64_sem1: base64_sem1.o
|
|
|
|
|
$(call hush, "Linking $@") $(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
|
|
base64_sem2: LDFLAGS:=-L../src -lhammer $(LDFLAGS)
|
|
|
|
|
base64_sem2: base64_sem2.o
|
|
|
|
|
$(call hush, "Linking $@") $(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
|
|
|
|
|
base64%.o: ../src/hammer.h ../src/glue.h
|