changeset 83:9baefdd4179c

Use win32/ subdirectory for object files also.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 20 Apr 2009 22:03:14 +0300
parents 8df3f73c5f16
children bb309cd2fea4
files Makefile.gen Makefile.w32
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.gen	Mon Apr 20 22:02:58 2009 +0300
+++ b/Makefile.gen	Mon Apr 20 22:03:14 2009 +0300
@@ -14,10 +14,10 @@
 #
 all: $(TARGETS)
 
-%.o: %.c %.h
+$(OBJPATH)%.o: %.c %.h
 	$(COMP) -c -o $@ $<
 
-$(NNCHAT_BIN): nnchat.c libnnchat.o th_util.o th_string.o th_args.o
+$(NNCHAT_BIN): nnchat.c $(OBJPATH)libnnchat.o $(OBJPATH)th_util.o $(OBJPATH)th_string.o $(OBJPATH)th_args.o
 	$(COMP) -o $@ $+ $(LDFLAGS)
 
 #
--- a/Makefile.w32	Mon Apr 20 22:02:58 2009 +0300
+++ b/Makefile.w32	Mon Apr 20 22:03:14 2009 +0300
@@ -13,5 +13,6 @@
 # Miscellaneous
 RM=rm
 EXEEXT=.exe
+OBJPATH=win32/
 
 include Makefile.gen