📄 dftpmake.mak
字号:
#
# DFTPMAKE.MAK - Symantec C++ and Borland C++ make file for Donald Asonyes
# FTP program. Works with both Symantec's SMAKE and Borland's MAKE.
#
# By Alfons Hoogervorst, 1996.
#
# This file targets the Intel Win32 platform
#
APP=DFTP
######## CONFIGURATION SECTION ########
###
### Development tools
###
!if "$(SYMANTEC)" == "1"
CC=sc ## Change path
LINK=link ## Change path
!elif "$(BORLAND)" == "1"
CC=bcc32 ## Change path
LINK=tlink32 ## Change path
!endif
###
### Directories where development tools should search for their files
### (INC=include, LIB=library, OBJ=object).
###
!if "$(SYMANTEC)" == "1"
INC=g:\sc\include ## Change path
LIB=g:\sc\lib ## Change path
OBJ=
!elif "$(BORLAND)" == "1"
INC=f:\bc4\include ## Change path
LIB=f:\bc4\lib ## Change path
OBJ=
!endif
###
### Following sections don't need to be changed
###
######## COMPILER SECTION ########
!if "$(SYMANTEC)" == "1"
###
### -D_CONSOLE = define console
### -c = compile only
### -mn -WA -3 -a8 = Win32 Console
### -o+time = optimize for speed
###
C_OPTIMIZE = -o+time
C_FLAGS_1 = -D_CONSOLE=1 -c -mn -WA -3 -a8 -I$(INC)
!ifdef DEBUG
C_FLAGS = $(C_FLAGS_1) -S -g -gd -C
!else
C_FLAGS = $(C_FLAGS_1) $(C_OPTIMIZE)
!endif # DEBUG
!elif "$(BORLAND)" == "1"
###
### -c = compile only
### -tWC = Windows console
### -O2 = optimize for speed
### -w-pro = Warning off: no prototype defined
### -w-par = Warning off: argument unused
###
C_OPTIMIZE = -O2
C_FLAGS_1 = /D_WIN32 -c -tWC -I$(INC) /DWIN32 -w-pro -w-par
!ifdef DEBUG
C_FLAGS=$(C_FLAGS_1) -v -y
!else
C_FLAGS=$(C_FLAGS_1) $(C_OPTIMIZE)
!endif
!endif # SYMANTEC
######## LINKER SECTION ########
!if "$(SYMANTEC)" == "1"
###
### /NT = Console
### /ENTRY = Startup address
### /VERS = Version
### /A = .obj alignment
### /NOI = no ignore case
### /XN = ditto
###
###
### Additional files
###
L_AF_OBJ=commands+fileio+help+keyio+main+scon
L_AF_LIB=$(LIB)\WSOCK32 KERNEL32 GDI32 USER32
L_AF_DEF=
L_FLAGS_1=/NT /NOI /XN /ENTRY:mainCRTStartup /VERS:1.0 /A:512
!ifdef DEBUG
L_FLAGS=$(L_FLAGS_1) /CO /DE
!else
L_FLAGS=$(L_FLAGS_1)
!endif # DEBUG
!elif "$(BORLAND)" == "1"
###
### -ap = console
### -Tpe = Win32 executable
### -L = lib search path
###
### Additional files for linker
L_AF_OBJ=c0x32 commands+fileio+help+keyio+main+scon
L_AF_LIB=IMPORT32 CW32
L_FLAGS_1=-ap -Tpe -L$(LIB)
!ifdef DEBUG
L_FLAGS=$(L_FLAGS_1) -v
!else
L_FLAGS=$(L_FLAGS_1)
!endif # DEBUG
!endif # SYMANTEC
######## RULES #########
.c.obj:
@echo Compiling $*.c
@$(CC) $(C_FLAGS) $*.c
all: $(APP).xxx $(APP)
!if "$(SYMANTEC)" == "1"
$(APP).xxx:
@echo $(L_AF_OBJ),$(APP),,$(L_AF_LIB),$(L_AF_DEF); > $(APP).xxx
!elif "$(BORLAND)" == "1"
$(APP).xxx:
@echo $(L_AF_OBJ),+ > $(APP).xxx
@echo $(APP),+ >> $(APP).xxx
@echo ,+ >> $(APP).xxx
@echo $(L_AF_LIB),$(L_AF_DEF) >> $(APP).xxx
!endif
$(APP): commands.obj commands.h enums.h extfuncs.h fileio.obj \
help.obj help.h keyio.obj main.obj scon.obj scon.h
@$(LINK) $(L_FLAGS) @$(APP).xxx
@echo Done.
clean:
@del $(APP).xxx
@del *.obj
@del $(APP).map
@echo Cleaned
love:
@echo Do it with all first.
babies:
@echo Make another wish.
cookies:
@echo Mix 250g flour, 150g sugar, 125g butter, an egg, a few drops of vanilla
@echo essence, and 1 tsp baking powder into a dough, cut cookies from rolls of
@echo dough, bake for about 15 minutes at 180C until they turn very light brown
@echo at the edges.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -