-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.am
52 lines (42 loc) · 1.6 KB
/
Makefile.am
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
if NO_STEAM
STEAM_FLAGS = -DNO_STEAM
STEAM_LDADD =
else
EXTRA_FLAGS =
STEAM_LDADD = -lsteam_api
endif
EXTRA_LDADD =
EXTRA_LD_FLAGS =
EXTRA_SRC =
if LINUX
EXTRA_SRC += clip/clip_x11.cpp
EXTRA_LDADD += @XCB_LIBS@
endif
if MACOS
EXTRA_SRC += clip/clip_osx.mm
EXTRA_LD_FLAGS += -framework Cocoa
endif
bin_PROGRAMS = ComPressure ComPressureServer
ComPressure_SOURCES = GameState.cpp GameState.h \
main.cpp \
Misc.cpp Misc.h \
SaveState.cpp SaveState.h \
Circuit.cpp Circuit.h \
Level.cpp Level.h \
Compress.cpp Compress.h \
clip/clip.cpp clip/image.cpp $(EXTRA_SRC)
ComPressure_CXXFLAGS = @CXXFLAGS@ @SDL2_CFLAGS@ @SDL2_image_CFLAGS@ @SDL2_mixer_CFLAGS@ @SDL2_net_CFLAGS@ @SDL2_ttf_CFLAGS@ @ZLIB_CFLAGS@ @ZSTD_CFLAGS@ -I. $(STEAM_FLAGS)
ComPressure_LDADD=@SDL2_LIBS@ @SDL2_image_LIBS@ @SDL2_mixer_LIBS@ @SDL2_net_LIBS@ @SDL2_ttf_LIBS@ @ZLIB_LIBS@ @ZSTD_LIBS@ $(STEAM_LDADD) $(EXTRA_LDADD) -lpthread
ComPressure_LDFLAGS=-L. $(EXTRA_LD_FLAGS)
ComPressureServer_SOURCES = ComPressureServer.cpp \
Compress.cpp Compress.h \
SaveState.cpp SaveState.h \
Circuit.cpp Circuit.h \
Level.cpp Level.h \
Misc.cpp Misc.h
ComPressureServer_CXXFLAGS = @CXXFLAGS@ @SDL2_CFLAGS@
ComPressureServer_LDADD= -lz @ZSTD_LIBS@ -lpthread
ComPressureServer_LDFLAGS= -static
Level.string: Level.json stringify.py
./stringify.py Level.json > Level.string
CXXFLAGS = -std=c++2a