1# 2# 3# Makefile for VisualAge C++ version 3.00 4# 5# 6 7EXE = 8 9OEXT = obj 10 11DEBUG = 0 12#DEBUG = 1 13 14CC = icc 15LINK = ilink 16RC = rc 17VOID = echo > NUL 18 19!if $(DEBUG) 20C_FLAGS = /Ti /Tx 21!else 22C_FLAGS = /O /Gs- 23!endif 24C_OPTIONS = /Q /Tl /G4 /Gm+ /DOS2 /DINCL_32 $(C_FLAGS) 25 26!if $(DEBUG) 27CPP_FLAGS = /Ti /Tm /Tx 28!else 29CPP_FLAGS = /O /Gs- 30!endif 31CPP_OPTIONS = /Q /G4 /Gm+ /DOS2 /DINCL_32 $(CPP_FLAGS) 32 33!if $(DEBUG) 34L_FLAGS = /DEBUG /DBGPACK 35!else 36L_FLAGS = /EXEPACK:2 /PACKC /PACKD /OPTF 37!endif 38L_OPTIONS = /BASE:0x010000 /EXEC /NOE /NOLOGO $(L_FLAGS) 39 40RC_OPT = -n 41 42C_SRC = 43C_H = 44CPP_SRC = 45CPP_HPP = 46 47!include objs.inc 48 49RES = 50 51LIBS = 52HLIB = 53 54DEF = 55 56 57.SUFFIXES: 58.SUFFIXES: .cpp .rc 59 60all: cfte.exe fte.exe ftepm.exe clipserv.exe cliputil.exe fte.cnf 61 62clean: 63 -del bin2c.exe 64 -del bin2c.map 65 -del cfte.exe 66 -del cfte.map 67 -del clipserv.exe 68 -del clipserv.map 69 -del cliputil.exe 70 -del cliputil.map 71 -del defcfg.cnf 72 -del defcfg.h 73 -del fte.cnf 74 -del fte.exe 75 -del fte.his 76 -del fte.map 77 -del ftepm.exe 78 -del ftepm.map 79 -del ftepm.res 80 -del *.obj 81 82clipserv.exe: clipserv.$(OEXT) clipserv.def 83 $(VOID) <<clipserv.lnk 84clipserv.$(OEXT) $(L_OPTIONS) 85/OUT:$@ /MAP:clipserv.MAP 86$(LIBS) 87clipserv.def 88<< 89 $(LINK) @clipserv.lnk 90 91cliputil.exe: cliputil.$(OEXT) clip_vio.$(OEXT) cliputil.def 92 $(VOID) <<cliputil.lnk 93cliputil.$(OEXT) clip_vio.$(OEXT) $(L_OPTIONS) 94/OUT:$@ /MAP:cliputil.MAP 95$(LIBS) 96cliputil.def 97<< 98 $(LINK) @cliputil.lnk 99 100cfte.exe: $(CFTE_OBJS) cfte.def 101 $(VOID) <<cfte.lnk 102$(CFTE_OBJS) $(L_OPTIONS) 103/OUT:$@ /MAP:cfte.MAP 104$(LIBS) 105cfte.def 106<< 107 $(LINK) @cfte.lnk 108 109defcfg.cnf: defcfg.fte cfte.exe 110 cfte defcfg.fte defcfg.cnf 111 112defcfg.h: defcfg.cnf bin2c.exe 113 bin2c defcfg.cnf >defcfg.h 114 115fte.cnf: ..\config\* cfte.exe 116 cfte ..\config\main.fte fte.cnf 117 118bin2c.obj: bin2c.cpp 119 120bin2c.exe: bin2c.obj 121 $(VOID) <<bin2c.lnk 122bin2c.obj $(L_OPTIONS) /PM:VIO 123/OUT:$@ /MAP:bin2c.MAP 124$(LIBS) 125$(DEF) 126<< 127 $(LINK) @bin2c.lnk 128 129c_config.$(OEXT): defcfg.h 130 131fte.exe: $(OBJS) $(VIOOBJS) fte.def 132 $(VOID) <<fte.lnk 133$(OBJS) $(VIOOBJS) $(L_OPTIONS) 134/OUT:$@ /MAP:fte.MAP 135$(LIBS) 136fte.def 137<< 138 $(LINK) @fte.lnk 139 140ftepm.res: ftepm.rc pmdlg.rc 141 142ftepm.exe: $(OBJS) $(PMOBJS) ftepm.def ftepm.res 143 $(VOID) <<ftepm.lnk 144$(OBJS) $(PMOBJS) $(L_OPTIONS) 145/OUT:$@ /MAP:ftepm.MAP 146$(LIBS) 147ftepm.def 148<< 149 $(LINK) @ftepm.lnk 150 $(RC) $(RC_OPT) ftepm.res ftepm.EXE 151 152$(EXE).EXE: $(OBJS) $(C_SRC:.c=.obj) $(CPP_SRC:.cpp=.obj) $(RES) $(DEF) $(LIBS) 153 $(VOID) <<$(EXE).lnk 154$(OBJS) $(C_SRC:.c=.obj) $(CPP_SRC:.cpp=.obj) $(L_OPTIONS) 155/OUT:$@ /MAP:$(EXE).MAP 156$(LIBS) 157$(DEF) 158<< 159 $(LINK) @$(EXE).lnk 160 $(RC) $(RC_OPT) $(RES) $(EXE).EXE 161 162 163# $(C_SRC:.c=.obj): $(C_SRC) $(C_H) 164 165# $(CPP_SRC:.cpp=.obj): $(CPP_SRC) $(CPP_HPP) 166 167# $(RES): $(RES:.res=.rc) 168 169.C.$(OEXT): 170 $(CC) /C $(C_OPTIONS) $< 171 172.CPP.$(OEXT): 173 $(CC) /C $(CPP_OPTIONS) $< 174 175.RC.RES: 176 $(RC) -r $(RC_OPT) $< 177