You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0KB

  1. #
  2. # Stuff every FLTK application might need
  3. #
  4. # If you take this for use in your own project, be sure to change
  5. # the 'FLTKCONFIG' setting to point to where it's installed
  6. # on your system. Common examples:
  7. #
  8. # FLTKCONFIG = /usr/local/bin/fltk-config
  9. # FLTKCONFIG = /usr/local/src/fltk-1.3.x-svn/fltk-config
  10. #
  11. # Set .SILENT in your Makefile if you want 'quieter' builds.
  12. #
  13. ifeq '$(OS)' "Windows_NT"
  14. EXEEXT = .exe
  15. endif
  16. FLTKCONFIG = ../fltk-config
  17. CXX = $(shell $(FLTKCONFIG) --cxx)
  18. CXXFLAGS = $(shell $(FLTKCONFIG) --cxxflags) -Wall -I.
  19. LINKFLTK = $(shell $(FLTKCONFIG) --ldstaticflags)
  20. LINKFLTK_GL = $(shell $(FLTKCONFIG) --use-gl --ldstaticflags)
  21. LINKFLTK_IMG = $(shell $(FLTKCONFIG) --use-images --ldstaticflags)
  22. LINKFLTK_ALL = $(shell $(FLTKCONFIG) --use-images --use-gl --ldstaticflags)
  23. .SUFFIXES: .cxx .h .fl .o $(EXEEXT)
  24. # HOW TO COMPILE
  25. .cxx.o:
  26. @echo "*** Compile $<..."
  27. $(CXX) -I.. $(CXXFLAGS) -c $< -o $@
  28. # HOW TO LINK
  29. .o$(EXEEXT):
  30. @echo "*** Linking $@..."
  31. $(CXX) $< $(LINKFLTK_ALL) -o $@