-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmakefile.linux
executable file
·48 lines (35 loc) · 1.12 KB
/
makefile.linux
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
36
37
38
39
40
41
42
43
44
45
46
47
48
# pixeltoaster makefile for linux
CFLAGS = -O3 -Wall -Isource -DPLATFORM_UNIX
LDFLAGS = -L/usr/X11R6/lib -lX11 -lrt
SHELL = /bin/sh
INSTALL = /usr/bin/install -c
INSTALLDATA = ${INSTALL} -m 644
INSTALLDIR = ${INSTALL} -d
srcdir = source
prefix = /usr/local
includedir = $(prefix)/include/PixelToaster-1.4
libdir = $(prefix)/lib
pkgconfigdir = $(libdir)/pkgconfig
source := $(wildcard PixelToaster*.cpp)
examples := $(patsubst Example%.cpp,Example%,$(wildcard Example*.cpp))
headers := $(wildcard PixelToaster*.h)
pkconfig = PixelToaster-1.4.pc
all : $(examples)
% : %.cpp ${headers} makefile.linux
g++ $< PixelToaster.cpp -o $@ ${CFLAGS} ${LDFLAGS}
documentation : PixelToaster.h ${headers} doxygen.config
doxygen doxygen.config
docs : documentation
test : Test
Test
profile : Profile
Profile
install: installdirs
$(INSTALLDATA) ${source} $(includedir)
$(INSTALLDATA) ${headers} $(includedir)
$(INSTALLDATA) ${pkconfig} $(pkgconfigdir)
installdirs:
test -z "$(includedir)" || $(INSTALLDIR) "$(includedir)"
test -z "$(pkgconfigdir)" || $(INSTALLDIR) "$(pkgconfigdir)"
clean:
rm -rf $(examples) Test Profile documentation