4 # Copyright (C) 1999 by Matteo Cavalleri
7 include $(TOP)/config.mk
9 COMMON_OBJS = GetGadgetBox.o
11 all: $(GST) $(APP_STARTUP) $(COMMON_OBJS)
14 @echo "This target compile the custom startup code and place it"
15 @echo "in the obj/ directory, create the GST (Global Symbol Table)"
16 @echo "for SAS/C users."
23 @echo "This target does nothing."; echo
29 @echo "This target does nothing."; echo
35 @echo "This target does nothing."; echo
40 @echo "This target compile the custom startup code and place it"
41 @echo "in the obj/ directory."
45 $(RM) $(APP_STARTUP) $(GST)
48 @echo "This target deletes the custom startup code object and the GST."
55 @echo "This target does nothing."; echo
58 ###########################################################
59 # Compile custom startup code for applications
60 ###########################################################
62 $(APP_STARTUP): $(APP_STARTUP_SRC)
65 ###########################################################
66 # Compile common objects
67 ###########################################################
69 $(COMMON_OBJS): %.o : %.c
70 $(CC) $< $(TO) $@ $(O_CFLAGS)
73 ###########################################################
74 # Make Global Symbol Table to speed up compiling
75 ###########################################################
77 # We must define some symbols here because defining them
78 # inside GST.c won't work as expected. (SAS/C bug?)
80 # NOTE: The GST file does not depend on any headers because
81 # otherwise all objects would be remade each time you edit
82 # one of the header files.
86 ifeq ($(strip $(COMPILER)),sc)
87 $(CC) FROM gst.c MAKEGST $(GST) NOOBJNAME $(O_CFLAGS) \
88 DEF=INTUI_V36_NAMES_ONLY DEF=__USE_SYSBASE \
89 DEF=CLIB_ALIB_PROTOS_H