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