# # Fl_Fixed_Group -- Makefile # FLTKCONFIG=fltk-config ### REMOVE:END # Flags for compiler: CFLAGS = -Wall -O3 -I. $(shell $(FLTKCONFIG) --cflags) -DFLTK1 CXXFLAGS = -Wall -O3 -I. $(shell $(FLTKCONFIG) --cxxflags) -DFLTK1 # Possible steps after linking... STRIP = strip POSTBUILD = $(FLTKCONFIG) --post # Libraries to link with: LINKFLTK = $(shell $(FLTKCONFIG) --ldstaticflags) IMGLIB = $(shell $(FLTKCONFIG) --use-images --ldstaticflags) GL_LIB = $(shell $(FLTKCONFIG) --use-gl --ldstaticflags) # Other general settings CXX = $(shell $(FLTKCONFIG) --cxx) CC = $(shell $(FLTKCONFIG) --cc) # now we can make specific modifications based on the operating system and host UNAME := $(shell uname) SRCS=Fl_Fixed_Group.cxx FL/Fl_Fixed_Group.H all: Fl_Fixed_Group.o test-fixed-group #.SILENT: # Make the build run quietly .SUFFIXES: .c .cxx .cpp .cc .h .fl .o %.o : %.cxx @echo Compile $@... $(CXX) -c -o $@ $< $(CXXFLAGS) %.o : %.c @echo Compile $@... $(CC) -c -o $@ $< $(CFLAGS) Fl_Fixed_Group.o: $(SRCS) $(CXX) $(CXXFLAGS) $< -c test-fixed-group.o: test-fixed-group.cxx $(CXX) $(CXXFLAGS) $< -c test-fixed-group: test-fixed-group.o test-fixed-group.o $(CXX) test-fixed-group.o Fl_Fixed_Group.o $(IMGLIB) $(LDLIBS) -o $@ $(STRIP) $@ $(POSTBUILD) test-fixed-group # FORCE TARGET -- Do not remove FORCE: # Clean build clean: FORCE # BINARIES -rm -f *.o 2> /dev/null -rm -f *.obj 2> /dev/null -rm -f *.exe 2> /dev/null -rm -f test-fixed-group 2> /dev/null # EDITOR CRAP -rm -f *~ 2> /dev/null -rm -f .*.swp 2> /dev/null # WINDOWS CRAP -rm -rf ii_files 2> /dev/null -rm -f *.{ilk,pdb,sln,suo} 2> /dev/null -rm -f *.{manifest,idb} 2> /dev/null # UNIX CRAP -rm -f core 2> /dev/null -rm -f core.* 2> /dev/null -rm -f .nfs* 2> /dev/null -rm -f .gdb_history 2> /dev/null # MAC CRAP -rm -rf .DS_Store 2> /dev/null # Create distribution tar file (for maintainer only) tar: clean sh .TAR_RELEASE.sh # FORCE TARGET -- Do not remove FORCE: