# # $Id:$ # # Copyright (C) 1999 by Matteo Cavalleri # ## This is the 'local' makefile, i.e. the makefile ## that is placed in very classes' directory. ## You can simply copy it in your class' directory ## and rename it to 'Makefile', or, if you want, you ## can customize it. ## ## We also suggest you to delete the lines beginning ## with two '##' like the ones you are reading now. ## This will make the processing of this file faster ## since make won't have to strip tons of comments. ## include $(BOOPSITOP)/config.mk ## ## This include the local configuration ## for your class, i.e. the file with ## the class name, version, etc. ## It must be present and properly ## customized. Read the Empty_config.mk ## file in the docs/ directory for a more ## detailed explanation. ## include config.mk ## ## These variables will be used by the general.mk ## files, so you may use them to pass "arguments" ## to it, e.g. if you need to link a specific object ## to your demo program or class. ## ## the ARG_COMMON is the arguments that will be used ## for all the targets, the other variables will be ## used only for the specific target ## ## example ## ## ARG_ALL := $(ARG_COMMON) MyObj.o ## ARG_COMMON := ARG_ALL := $(ARG_COMMON) ARG_LIB := $(ARG_COMMON) ARG_DEBUG := $(ARG_COMMON) ARG_PRIVATE := $(ARG_COMMON) ARG_OBJ := $(ARG_COMMON) ARG_INSTALL := $(ARG_COMMON) ## ## These variables will be used by the general.mk ## files, so you may use them to pass "arguments" ## to it, e.g. if you need to add new dependencies ## to the various targets ## ## the DEP_COMMON is the arguments that will be used ## for all the targets, the other variables will be ## used only for the specific target ## ## example ## ## DEP_ALL := $(DEP_COMMON) MyObj.o ## DEP_COMMON := DEP_ALL := $(DEP_COMMON) DEP_LIB := $(DEP_COMMON) DEP_DEBUG := $(DEP_COMMON) DEP_PRIVATE := $(DEP_COMMON) DEP_OBJ := $(DEP_COMMON) ## ## This is the real makefile. If you ## don't like it you can include your ## own makefile. We suggest you to put it ## in the common/ directory (with a name ## different from 'general.mk') and to include ## it rather than writing it here, so that ## other user can use it for their classes. ## ## example ## ## include $(BOOPSITOP)/common/mycustommakefile.mk ## include $(BOOPSITOP)/common/general.mk ## ## Below you can add your own custom targets that are ## needed for your class. ## ## example ## ## MyObj.o: MyObj.c ## $(CC) $^ $(O) $@ ##