4 ## Copyright (C) 1996,97 by Bernardo Innocenti
9 ###########################################################
10 # Name of the main executable
11 ###########################################################
16 ###########################################################
17 # Package configuration
18 ###########################################################
21 # Cpu to compile for (eg: "68020").
26 ###########################################################
27 # Object files in this project
28 ###########################################################
30 OBJS = PIPWin.o PIPClass.o
33 ###########################################################
35 ###########################################################
40 ###########################################################
41 # Remove all targets and intermediate files
42 ###########################################################
45 -Delete $(PROJ) $(OBJS)
48 ###########################################################
50 ###########################################################
52 PIPWin.c PIPClass.c: PIPClass.h
55 ###########################################################
56 # Compiler, linker and assembler flags
57 ###########################################################
60 # C compiler flags for both release and debug versions
62 COMMON_CFLAGS = PARAMETERS=REGISTERS STRINGMERGE NOSTACKCHECK NOCHECKABORT \
63 NOICONS NOLINK DATA=NEAR CODE=NEAR STRSECT=CODE DEF=$(OSVER) CPU=$(CPU)
65 # C compiler optimization flags
67 OPT_CFLAGS = OPTIMIZE OPTTIME OPTSCHEDULER OPTINLINELOCAL \
68 OPTRDEPTH=4 OPTDEPTH=4 OPTCOMP=8
70 # Debug flags: don't optimize and include all symbols in debug hunks
72 DEBUG_CFLAGS = NOOPTIMIZE DEBUG=FULLFLUSH ONERROR=CONTINUE DEF=DEBUG
75 # RELEASE version should be compiled with these flags
77 CFLAGS = $(COMMON_CFLAGS) $(OPT_CFLAGS)
78 LFLAGS = NODEBUG SMALLCODE SMALLDATA NOALVS NOICONS
81 # DEBUG version should be compiled with these flags
83 #CFLAGS = $(COMMON_CFLAGS) $(DEBUG_CFLAGS)
84 #LFLAGS = ADDSYM SMALLCODE SMALLDATA BATCH NOALVS NOICONS
85 #LIBS = LIB LIB:debug.lib
88 ###########################################################
90 ###########################################################
92 # NOTE: Using implicit rule to compile C files
95 $(LD) FROM $(OBJS) TO $(PROJ) $(LIBS) $(LFLAGS)