updated win32 borland port demo file for new directory layout.

This commit is contained in:
skarg
2006-01-17 15:59:30 +00:00
parent 57d818db1b
commit 4b6f3a45a2
2 changed files with 22 additions and 10 deletions
+5 -4
View File
@@ -53,7 +53,8 @@ OBJS = $(SRCS:.c=.obj)
# Compiler definitions # Compiler definitions
# #
CC = $(BORLAND_DIR)\bin\bcc32 +bcc32.cfg BCC_CFG = bcc32.cfg
CC = $(BORLAND_DIR)\bin\bcc32 +$(BCC_CFG)
#LINK = $(BORLAND_DIR)\bin\tlink32 #LINK = $(BORLAND_DIR)\bin\tlink32
LINK = $(BORLAND_DIR)\bin\ilink32 LINK = $(BORLAND_DIR)\bin\ilink32
TLIB = $(BORLAND_DIR)\bin\tlib TLIB = $(BORLAND_DIR)\bin\tlib
@@ -78,7 +79,7 @@ $(C_LIB_DIR)\CW32MT.lib
# #
# This should be the first one in the makefile # This should be the first one in the makefile
all : bcc32.cfg $(PRODUCT_EXE) all : $(BCC_CFG) $(PRODUCT_EXE)
# Linker specific: the link below is for BCC linker/compiler. If you link # Linker specific: the link below is for BCC linker/compiler. If you link
# with a different linker - please change accordingly. # with a different linker - please change accordingly.
@@ -107,7 +108,7 @@ clean :
del ..\..\ports\win32\*.obj del ..\..\ports\win32\*.obj
del $(PRODUCT_EXE) del $(PRODUCT_EXE)
del *.map del *.map
del bcc32.cfg del $(BCC_CFG)
# #
# Generic rules # Generic rules
@@ -121,7 +122,7 @@ clean :
$(CC) -o$@ $< $(CC) -o$@ $<
# Compiler configuration file # Compiler configuration file
bcc32.cfg : $(BCC_CFG) :
Copy &&| Copy &&|
$(CFLAGS) $(CFLAGS)
-c -c
+17 -6
View File
@@ -19,7 +19,15 @@ DEFINES = -DBACDL_BIP=1
SRCS = main.c bip-init.c \ SRCS = main.c bip-init.c \
..\..\bip.c \ ..\..\bip.c \
..\..\handlers.c \ ..\..\demo\handler\h_iam.c \
..\..\demo\handler\h_whois.c \
..\..\demo\handler\h_wp.c \
..\..\demo\handler\h_rp.c \
..\..\demo\handler\h_rp_a.c \
..\..\demo\handler\noserv.c \
..\..\demo\handler\txbuf.c \
..\..\demo\handler\s_rp.c \
..\..\demo\handler\s_whois.c \
..\..\bacdcode.c \ ..\..\bacdcode.c \
..\..\bacapp.c \ ..\..\bacapp.c \
..\..\bacstr.c \ ..\..\bacstr.c \
@@ -49,7 +57,8 @@ OBJS = $(SRCS:.c=.obj)
# Compiler definitions # Compiler definitions
# #
CC = $(BORLAND_DIR)\bin\bcc32 +bcc32.cfg BCC_CFG = bcc32.cfg
CC = $(BORLAND_DIR)\bin\bcc32 +$(BCC_CFG)
#LINK = $(BORLAND_DIR)\bin\tlink32 #LINK = $(BORLAND_DIR)\bin\tlink32
LINK = $(BORLAND_DIR)\bin\ilink32 LINK = $(BORLAND_DIR)\bin\ilink32
TLIB = $(BORLAND_DIR)\bin\tlib TLIB = $(BORLAND_DIR)\bin\tlib
@@ -58,7 +67,7 @@ TLIB = $(BORLAND_DIR)\bin\tlib
# Include directories # Include directories
# #
CC_DIR = $(BORLAND_DIR)\BIN CC_DIR = $(BORLAND_DIR)\BIN
INCL_DIRS = -I$(BORLAND_DIR)\include;..\..\;..\..\demo\object\;. INCL_DIRS = -I$(BORLAND_DIR)\include;..\..\;..\..\demo\handler\;..\..\demo\object\;.
CFLAGS = $(INCL_DIRS) $(CS_FLAGS) $(DEFINES) CFLAGS = $(INCL_DIRS) $(CS_FLAGS) $(DEFINES)
@@ -74,7 +83,7 @@ $(C_LIB_DIR)\CW32MT.lib
# #
# This should be the first one in the makefile # This should be the first one in the makefile
all : bcc32.cfg $(PRODUCT_EXE) all : $(BCC_CFG) $(PRODUCT_EXE)
# Linker specific: the link below is for BCC linker/compiler. If you link # Linker specific: the link below is for BCC linker/compiler. If you link
# with a different linker - please change accordingly. # with a different linker - please change accordingly.
@@ -97,9 +106,11 @@ clean :
@echo Deleting obj files, $(PRODUCT_EXE) and map files. @echo Deleting obj files, $(PRODUCT_EXE) and map files.
del *.obj del *.obj
del ..\..\*.obj del ..\..\*.obj
del ..\..\demo\handler\*.obj
del ..\..\demo\object\*.obj
del $(PRODUCT_EXE) del $(PRODUCT_EXE)
del *.map del *.map
del bcc32.cfg del $(BCC_CFG)
# #
# Generic rules # Generic rules
@@ -113,7 +124,7 @@ clean :
$(CC) -o$@ $< $(CC) -o$@ $<
# Compiler configuration file # Compiler configuration file
bcc32.cfg : $(BCC_CFG) :
Copy &&| Copy &&|
$(CFLAGS) $(CFLAGS)
-c -c