# # $Id:$ # # Copyright (C) 1999 by Matteo Cavalleri # include $(TOP)/config.mk COMMON_OBJS = GetGadgetBox.o all: $(GST) $(APP_STARTUP) $(COMMON_OBJS) help-all: @echo "This target compile the custom startup code and place it" @echo "in the obj/ directory, create the GST (Global Symbol Table)" @echo "for SAS/C users." @echo lib: $(NOP) help-lib: @echo "This target does nothing."; echo debug: $(NOP) help-debug: @echo "This target does nothing."; echo private: $(NOP) help-private: @echo "This target does nothing."; echo obj: $(APP_STARTUP) help-obj: @echo "This target compile the custom startup code and place it" @echo "in the obj/ directory." @echo clean: $(RM) $(APP_STARTUP) $(GST) help-clean: @echo "This target deletes the custom startup code object and the GST." @echo install: $(NOP) help-install: @echo "This target does nothing."; echo ########################################################### # Compile custom startup code for applications ########################################################### $(APP_STARTUP): $(APP_STARTUP_SRC) $(AS) $< $(TO) $@ ########################################################### # Compile common objects ########################################################### $(COMMON_OBJS): %.o : %.c $(CC) $< $(TO) $@ $(O_CFLAGS) ########################################################### # Make Global Symbol Table to speed up compiling ########################################################### # # We must define some symbols here because defining them # inside GST.c won't work as expected. (SAS/C bug?) # # NOTE: The GST file does not depend on any headers because # otherwise all objects would be remade each time you edit # one of the header files. # $(GST): GST.c ifeq ($(strip $(COMPILER)),sc) $(CC) FROM gst.c MAKEGST $(GST) NOOBJNAME $(O_CFLAGS) \ DEF=INTUI_V36_NAMES_ONLY DEF=__USE_SYSBASE \ DEF=CLIB_ALIB_PROTOS_H endif