Initial commit
[amiga/OpenBoopsi.git] / gadgets / PIPWin / GNUmakefile.nothanks
1 ##
2 ##      $VER: PIPWin_Makefile 2.6 (19.10.98)
3 ##
4 ##      Copyright (C) 1996,97 by Bernardo Innocenti
5 ##
6 ##      Makefile for gcc
7 ##
8
9 # Name of the final executable
10 #
11 PROJ = PIPWin
12
13 # Object files in this project
14 #
15 OBJS = startup_gcc.o PIPWin.o PIPClass.o
16
17 # C compiler name
18 #
19 CC = gcc
20
21 # Make the project
22 #
23 all: $(PROJ)
24
25 # Remove all targets and intermediate files
26 #
27 clean:
28         -Delete $(PROJ) $(OBJS)
29
30
31 ###########################################################
32 # gcc release version should be compiled with these flags
33 #
34 # NOTE: compiling with -fbaserel is currently not
35 #       possible because of the well known gcc/egcs
36 #               "register spilled" problem.
37 #
38 CFLAGS = -c -O3 -finline-functions -fno-implement-inlines \
39  -fomit-frame-pointer -fstrength-reduce \
40  -msmall-code -mregparm -I/gg/include -I/include \
41  -Wunused -Wreturn-type -D$(OSVER)
42 LFLAGS = -s
43 LIBS = -noixemul -nostdlib
44
45
46 ###########################################################
47 # gcc - Make the executable
48 ###########################################################
49 #
50 startup_gcc.o: startup_gcc.s
51         $(AS) startup_gcc.s -o startup_gcc.o
52
53 .c.o: VectorGlyphIClass.h
54         $(CC) $(*).c $(CFLAGS)
55
56 $(PROJ): $(OBJS)
57         $(CC) $(OBJS) -o $(PROJ) $(LFLAGS) $(LIBS)
58         @Protect $(PROJ) +e