From efa5485744509f4b20c5ecd2fdc9733f4275cebe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 29 Jun 2004 18:43:56 +0000 Subject: Gisle's djgpp updates --- packages/DOS/common.dj | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'packages/DOS') diff --git a/packages/DOS/common.dj b/packages/DOS/common.dj index 2ca0cb58b..d294d3039 100644 --- a/packages/DOS/common.dj +++ b/packages/DOS/common.dj @@ -9,6 +9,7 @@ .SUFFIXES: .exe .y MAKEFILE = Makefile.dj +OBJ_DIR = djgpp # # OpenSSL is available from www.openssl.org and builds okay @@ -48,7 +49,7 @@ YACC = bison -y CFLAGS = -g -O2 -I. -I../include -I../lib -Wall -DHAVE_CONFIG_H ifeq ($(USE_SSL),1) - CFLAGS += -DUSE_SSLEAY + CFLAGS += -DUSE_SSLEAY -I$(OPENSSL_ROOT) endif ifeq ($(USE_ZLIB),1) @@ -63,6 +64,13 @@ ifeq ($(USE_DEBUG),1) CFLAGS += -DDEBUG=1 -DCURLDEBUG #-DMALLOCDEBUG=1 -DDPRINTF_DEBUG2=1 endif +$(OBJ_DIR): + mkdir $(OBJ_DIR) + +$(OBJ_DIR)/%.o: %.c + $(CC) $(CFLAGS) -o $@ -c $< + @echo + # # Generated dependencies; Due to some hacks in gcc 2.95+ and djgpp 2.03 # we must prevent "$(DJDIR)/bin/../include/sys/version.h" from beeing @@ -78,6 +86,7 @@ depend: $(DEPEND_PREREQ) @echo "*cpp: %(cpp_cpu) %{posix:-D_POSIX_SOURCE} -remap" > $(MM_SPECS) sed -e "/^# DO NOT DELETE THIS LINE/,$$d" < Makefile.bak > $(MAKEFILE) echo "# DO NOT DELETE THIS LINE" >> $(MAKEFILE) - $(CC) -MM -specs=$(MM_SPECS) $(CFLAGS) $(SOURCES) >> $(MAKEFILE) + $(CC) -MM -specs=$(MM_SPECS) $(CFLAGS) $(SOURCES) | \ + sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/'$(OBJ_DIR)'\/\1/' >> $(MAKEFILE) rm -f $(MM_SPECS) -- cgit v1.2.3