# HG changeset patch # User Matti Hamalainen # Date 1240254194 -10800 # Node ID 9baefdd4179c5566544cb11ac1971d8cfe2a03eb # Parent 8df3f73c5f169c62ca09ee2d9144b7833ddc5559 Use win32/ subdirectory for object files also. diff -r 8df3f73c5f16 -r 9baefdd4179c Makefile.gen --- 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) # diff -r 8df3f73c5f16 -r 9baefdd4179c Makefile.w32 --- 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