#!/usr/bin/make -s # # FolderDump Make File # .SILENT : CC = g++ target = folder-dump BUILD = Debug VPATH = %.cpp \ $(BUILD) ccflags = -fPIC -w -fno-inline -fexceptions defs = -DLGI_RES -DMAIL_GUI -DLINUX -D_REENTRANT -DSCRIBE_APP release = $(target)-linux ifeq ($(BUILD),Debug) #debug builds.. flags = -g $(ccflags) $(defs) defs += -D_DEBUG tag = d else #release builds flags = -s -Os $(ccflags) $(defs) endif # libraries libs = #include paths for .h files incpath = # all the objects required depends = FolderDump.o # Executable target $(target) : $(depends) @echo Linking $(target) [$(BUILD)] $(CC) -Wl,-export-dynamic -f -o $(target) $(addprefix $(BUILD)/,$(depends)) $(libs) #-shared # Source files %.o : %.cpp @echo $( /dev/null -rm .nfs* 2> /dev/null