FLTKCONFIG=@FLTKCONFIG@ CXX = $(shell $(FLTKCONFIG) --cxx) $(shell $(FLTKCONFIG) --cxxflags) -Wall -DINTERNAL_LINKAGE -g -Icpp LD = $(CXX) -shared CC = $(shell $(FLTKCONFIG) --cc) $(shell $(FLTKCONFIG) --cflags) -Wall -g -I../c-src -I../ -I./ CXXLDFLAGS = @FLTKCONFIGCOMMAND@ ifeq '$(OS)' "Windows_NT" EXEEXT = .exe endif EXAMPLES= \ sanity_check.c \ arc.c \ bitmap.c \ boxtype.c \ browser.c \ button.c \ buttons.c \ clock.c \ colbrowser.c \ color_chooser.c \ cube.c \ cursor.c \ curve.c \ device.c \ doublebuffer.c \ file_chooser.c \ fonts.c \ howto-add_fd-and-popen.c \ howto-browser-with-icons.c \ howto-drag-and-drop.c \ howto-parse-args.c \ howto-text-over-image-button.c \ list_visuals.c \ make_button_with_callback.c \ make_input.c \ make_tree.c \ make_window.c \ make_window_fullscreen.c \ make_window_hide.c \ make_window_resize.c \ make_window_with_callback.c \ make_window_with_width_height.c \ menubar-add.c \ nativefilechooser-simple-app.c \ progress-simple.c \ rgb.txt \ table-as-container.c \ table-simple.c \ table-sort.c \ table-spreadsheet.c \ table-spreadsheet-with-keyboard-nav.c \ table-with-keynav.c \ tabs-simple.c \ textdisplay-with-colors.c \ texteditor-simple.c \ tree-of-tables.c \ tree-simple.c \ wizard-simple.c .SUFFIXES: .c $(EXEEXT) .SILENT: EXECUTABLEDIR = ../executables LIBDIR = ../c-lib OBJECTS = $(EXAMPLES:.c=$(EXEEXT)) all: $(OBJECTS) .c$(EXEEXT): @echo "*** Building $@" $(CC) -c $^ -o $@.o test -d $(EXECUTABLEDIR) || mkdir $(EXECUTABLEDIR) test -d $(EXECUTABLEDIR)/pixmaps || cp -r pixmaps $(EXECUTABLEDIR) test -f $(EXECUTABLEDIR)/rgb.txt || cp rgb.txt $(EXECUTABLEDIR) $(CXX) -o $(EXECUTABLEDIR)/$@ $@.o $(LIBDIR)/libfltkc.a $(CXXLDFLAGS) strip $(EXECUTABLEDIR)/$@ clean: rm *.o test -d $(EXECUTABLEDIR) && rm -rf $(EXECUTABLEDIR) %.o: