# file: $(NEDC_NFC)/util/cpp/nedc_cardio_check_ids/Makefile # # define compilation flags # CFLAGS += -O2 -Wall #CFLAGS += -g -Wall # define source and object files # SRC = nedc_cardio_check_ids.cc OBJ = nedc_cardio_check_ids.o EXE = nedc_cardio_check_ids # define dependencies # DEPS = $(NEDC_NFC)/class/cpp/Wfdb/Wfdb.h \ $(NEDC_NFC)/class/cpp/Edf/Edf.h \ $(NEDC_NFC)/lib/libdsp.a \ ./Makefile # define an extended include file path # INCLUDES = $(ISIP_INCLUDE) # define a target for the application # all: $(EXE) # define a target to link the application # $(EXE): $(OBJ) $(DEPS) g++ $(CFLAGS) -o $(EXE) \ $(OBJ) \ $(ISIP_LIBS) # define a target to make sure all source files are compiled # %.o: %.cc $(DEPS) g++ -c $(CFLAGS) $(INCLUDES) -o $@ $< # define an installation target # install: rm -f $(NEDC_NFC)/bin/$(EXE) cp $(EXE) $(NEDC_NFC)/bin/ cd $(NEDC_NFC)/bin/; chmod u+rwx,g+rwx,o+rx $(EXE) # define a target to clean the directory # clean: rm -f $(EXE) $(OBJ) # # end of file