mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:43:31 +03:00
Gisle's djgpp updates
This commit is contained in:
parent
c81ac51e5c
commit
efa5485744
4 changed files with 237 additions and 188 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue