# file: $(NEDC_NFC)/class/cpp/Wfdb/Makefile # # define the header and object files # HDR = Wfdb.h OBJ = wfdb_00.o wfdb_01.o wfdb_02.o # define compilation, linking and archiving flags # CFLAGS += -O2 -Wall #CFLAGS += -g -O2 -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