comparison Makefile.gen @ 381:7c28f38cb6dd

Update to use new th-libs from the subrepo.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 03 Oct 2011 15:43:42 +0300
parents 8c983c3b93eb
children 6d3ce7f28b65
comparison
equal deleted inserted replaced
380:727ce827482b 381:7c28f38cb6dd
21 # 21 #
22 # Target rules 22 # Target rules
23 # 23 #
24 all: $(NONBUILD) $(TARGETS) 24 all: $(NONBUILD) $(TARGETS)
25 25
26 $(OBJPATH)%.o: %.c %.h 26 $(OBJPATH)%.o: th-libs/%.c th-libs/%.h
27 $(CC) $(CFLAGS) -c -o $@ $< 27 $(CC) $(CFLAGS) -c -o $@ $<
28 28
29 $(OBJPATH)%.o: %.c %.h
30 $(CC) $(CFLAGS) -c -o $@ $< -Ith-libs/
31
29 $(NNCHAT_BIN): nnchat.c $(OBJPATH)libnnchat.o $(OBJPATH)th_util.o $(OBJPATH)th_string.o $(OBJPATH)th_args.o $(OBJPATH)th_config.o $(EXTRAOBJS) VERSION 32 $(NNCHAT_BIN): nnchat.c $(OBJPATH)libnnchat.o $(OBJPATH)th_util.o $(OBJPATH)th_string.o $(OBJPATH)th_args.o $(OBJPATH)th_config.o $(EXTRAOBJS) VERSION
30 $(CC) $(CFLAGS) -o $@ $(filter %.c %.o,$+) $(LDFLAGS) -DNN_VERSION=\"$(NN_VERSION)\" 33 $(CC) $(CFLAGS) -o $@ $(filter %.c %.o,$+) $(LDFLAGS) -DNN_VERSION=\"$(NN_VERSION)\" -Ith-libs/
31 34
32 # 35 #
33 # Special targets 36 # Special targets
34 # 37 #
35 clean: 38 clean: