Initial commit
[amiga/OpenBoopsi.git] / gadgets / PIPWin / SMakefile
1 ##
2 ##      $Id:$
3 ##
4 ##      Copyright (C) 1996,97 by Bernardo Innocenti
5 ##
6 ##      Makefile for SAS/C
7 ##
8
9 ###########################################################
10 # Name of the main executable
11 ###########################################################
12 #
13 PROJ = PIPWin
14
15
16 ###########################################################
17 # Package configuration
18 ###########################################################
19 #
20
21 # Cpu to compile for (eg: "68020").
22 #
23 CPU = 68000
24
25
26 ###########################################################
27 # Object files in this project
28 ###########################################################
29 #
30 OBJS = PIPWin.o PIPClass.o
31
32
33 ###########################################################
34 # Make the project
35 ###########################################################
36 #
37 all: $(PROJ)
38
39
40 ###########################################################
41 # Remove all targets and intermediate files
42 ###########################################################
43 #
44 clean:
45         -Delete $(PROJ) $(OBJS)
46
47
48 ###########################################################
49 # Dependences
50 ###########################################################
51 #
52 PIPWin.c PIPClass.c: PIPClass.h
53
54
55 ###########################################################
56 # Compiler, linker and assembler flags
57 ###########################################################
58 #
59
60 # C compiler flags for both release and debug versions
61 #
62 COMMON_CFLAGS = PARAMETERS=REGISTERS STRINGMERGE NOSTACKCHECK NOCHECKABORT \
63         NOICONS NOLINK DATA=NEAR CODE=NEAR STRSECT=CODE DEF=$(OSVER) CPU=$(CPU)
64
65 # C compiler optimization flags
66 #
67 OPT_CFLAGS = OPTIMIZE OPTTIME OPTSCHEDULER OPTINLINELOCAL \
68         OPTRDEPTH=4 OPTDEPTH=4 OPTCOMP=8
69
70 # Debug flags: don't optimize and include all symbols in debug hunks
71 #
72 DEBUG_CFLAGS = NOOPTIMIZE DEBUG=FULLFLUSH ONERROR=CONTINUE DEF=DEBUG
73
74
75 # RELEASE version should be compiled with these flags
76 #
77 CFLAGS = $(COMMON_CFLAGS) $(OPT_CFLAGS)
78 LFLAGS = NODEBUG SMALLCODE SMALLDATA NOALVS NOICONS
79
80
81 # DEBUG version should be compiled with these flags
82 #
83 #CFLAGS = $(COMMON_CFLAGS) $(DEBUG_CFLAGS)
84 #LFLAGS = ADDSYM SMALLCODE SMALLDATA BATCH NOALVS NOICONS
85 #LIBS = LIB LIB:debug.lib
86
87
88 ###########################################################
89 # Make the executable
90 ###########################################################
91 #
92 # NOTE: Using implicit rule to compile C files
93
94 $(PROJ): $(OBJS)
95         $(LD) FROM $(OBJS) TO $(PROJ) $(LIBS) $(LFLAGS)