# file: $(NEDC_NFC)/class/cpp/Cmdl/Makefile # # define the header and object files # HDR = Cmdl.h OBJ = cmdl_00.o cmdl_01.o cmdl_02.o # define compilation, linking and archiving flags # #CFLAGS += -O2 -Wall CFLAGS += -g -Wall AR = gcc-ar rvs # define dependencies # DEPS = $(HDR) \ $(NEDC_NFC)/lib/libdsp.a \ ./Makefile # define include files # INCLUDES = $(ISIP_INCLUDE) # define a dummy target # all: $(OBJ) # define a target to make sure all source files are compiled # %.o: %.cc $(DEPS) g++ -c $(CFLAGS) $(INCLUDES) -o $@ $< # define a special target to install the code # install: rm -f $(NEDC_NFC)/include/$(HDR) cp $(HDR) $(NEDC_NFC)/include/ chmod u+rw,g+rw,o+r $(NEDC_NFC)/include/$(HDR) $(AR) $(NEDC_NFC)/lib/libdsp.a $(OBJ) # define a target to clean the directory # clean: rm -f $(OBJ) # # end of file