aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-29 18:43:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-29 18:43:56 +0000
commitefa5485744509f4b20c5ecd2fdc9733f4275cebe (patch)
tree89720a586963471e27342e90ead4142d02b22aa4 /packages
parentc81ac51e5c1063fb34c2f30ec14009a5b5d52099 (diff)
Gisle's djgpp updates
Diffstat (limited to 'packages')
-rw-r--r--packages/DOS/common.dj13
1 files changed, 11 insertions, 2 deletions
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)