2 ## $VER: LVDemo_Makefile 2.1 (5.9.97)
4 ## Copyright (C) 1996,97 by Bernardo Innocenti
9 ###########################################################
10 # Name of the main executable
11 ###########################################################
16 ###########################################################
17 # Package configuration
18 ###########################################################
21 # set to OS30_ONLY to leave out support for old V37
22 # set to ANY_OS to make an executable for V37 with V39 support
31 ###########################################################
32 # Object files in this project
33 ###########################################################
35 OBJS = startup_gcc.o LVDemo.o ListViewHooks.o \
36 ListViewClass.o ListBoxClass.o ScrollButtonClass.o
39 ###########################################################
41 ###########################################################
46 ###########################################################
47 # Remove all targets and intermediate files
48 ###########################################################
51 -Delete $(PROJ) $(OBJS)
54 ###########################################################
56 ###########################################################
58 LVDemo.c ListViewClass.c: ListViewClass.h
61 ###########################################################
62 # GCC Release version should be compiled with these flags
63 ###########################################################
66 CFLAGS = -c -O0 -finline-functions -fno-implement-inlines \
67 -m$(CPU) -msmall-code -mregparm -fomit-frame-pointer \
68 -I/gg/include -I/include -Wunused -Wreturn-type -D$(OSVER)
70 LIBS = -noixemul -nostdlib
73 ###########################################################
74 # GCC - Make the executable
75 ###########################################################
78 # Assemble startup code
80 startup_gcc.o: startup_gcc.s
81 $(AS) startup_gcc.s -o startup_gcc.o
83 # Compile C sources and make the object files
86 $(CC) $(*).c $(CFLAGS)
88 # Link object files and make the executable
91 $(CC) $(OBJS) -o $(PROJ) $(LFLAGS) $(LIBS)