-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.freebsd
executable file
·72 lines (51 loc) · 2.42 KB
/
makefile.freebsd
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# pixeltoaster makefile for freebsd
CFLAGS = -O3 -Wall -Isource -I/usr/X11R6/include -DPLATFORM_UNIX
LDFLAGS = -L/usr/X11R6/lib -lX11
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 = PixelToaster.cpp
examples = ExampleTrueColor ExampleFullscreen ExampleFloatingPoint ExampleTimer ExampleKeyboardAndMouse ExampleImage
headers = PixelToaster.h PixelToasterCommon.h PixelToasterConversion.h PixelToasterUnix.h
pkconfig = PixelToaster-1.4.pc
all : $(examples)
ExampleTrueColor : ExampleTrueColor.cpp ${headers} makefile.freebsd
g++ ExampleTrueColor.cpp -o ExampleTrueColor PixelToaster.cpp ${CFLAGS} ${LDFLAGS}
ExampleFullscreen : ExampleFullscreen.cpp ${headers} makefile.freebsd
g++ ExampleFullscreen.cpp -o ExampleFullscreen PixelToaster.cpp ${CFLAGS} ${LDFLAGS}
ExampleFloatingPoint : ExampleFloatingPoint.cpp ${headers} makefile.freebsd
g++ ExampleFloatingPoint.cpp -o ExampleFloatingPoint PixelToaster.cpp ${CFLAGS} ${LDFLAGS}
ExampleTimer : ExampleTimer.cpp ${headers} makefile.freebsd
g++ ExampleTimer.cpp -o ExampleTimer PixelToaster.cpp ${CFLAGS} ${LDFLAGS}
ExampleKeyboardAndMouse : ExampleKeyboardAndMouse.cpp ${headers} makefile.freebsd
g++ ExampleKeyboardAndMouse.cpp -o ExampleKeyboardAndMouse PixelToaster.cpp ${CFLAGS} ${LDFLAGS}
ExampleImage : ExampleImage.cpp ${headers} makefile.freebsd
g++ ExampleImage.cpp -o ExampleImage PixelToaster.cpp ${CFLAGS} ${LDFLAGS}
ExampleMultiDisplay : ExampleMultiDisplay.cpp ${headers} makefile.freebsd
g++ ExampleMultiDisplay.cpp -o ExampleMultiDisplay PixelToaster.cpp ${CFLAGS} ${LDFLAGS}
Test : Test.cpp ${headers} makefile.freebsd
g++ Test.cpp -o Test PixelToaster.cpp ${CFLAGS} ${LDFLAGS}
Profile : Profile.cpp ${headers} makefile.freebsd
g++ Profile.cpp -o Profile PixelToaster.cpp ${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