Mercurial > repos > blastem
comparison Makefile @ 1693:ba3fb7a3be6b
Added some Makefile options to build a packaging friendly executable
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 22 Jan 2019 21:15:38 -0800 |
parents | 395f684c5379 |
children | 956c1cce05e2 49a52c737bf0 |
comparison
equal
deleted
inserted
replaced
1691:e96d0d3bec7f | 1693:ba3fb7a3be6b |
---|---|
45 LIBS=sdl2 glew gl | 45 LIBS=sdl2 glew gl |
46 endif #USE_GLES | 46 endif #USE_GLES |
47 FONT:=nuklear_ui/font.o | 47 FONT:=nuklear_ui/font.o |
48 endif #Darwin | 48 endif #Darwin |
49 | 49 |
50 ifdef HOST_ZLIB | |
51 LIBS+= zlib | |
52 LIBZOBJS= | |
53 else | |
54 LIBZOBJS=zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/gzclose.o zlib/gzlib.o zlib/gzread.o\ | |
55 zlib/gzwrite.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o | |
56 endif | |
57 | |
50 ifeq ($(OS),Darwin) | 58 ifeq ($(OS),Darwin) |
51 #This should really be based on whether or not the C compiler is clang rather than based on the OS | 59 #This should really be based on whether or not the C compiler is clang rather than based on the OS |
52 CFLAGS+= -Wno-logical-op-parentheses | 60 CFLAGS+= -Wno-logical-op-parentheses |
53 endif | 61 endif |
54 ifdef PORTABLE | 62 ifdef PORTABLE |
154 Z80OBJS=z80inst.o z80_to_x86.o | 162 Z80OBJS=z80inst.o z80_to_x86.o |
155 AUDIOOBJS=ym2612.o psg.o wave.o | 163 AUDIOOBJS=ym2612.o psg.o wave.o |
156 CONFIGOBJS=config.o tern.o util.o paths.o | 164 CONFIGOBJS=config.o tern.o util.o paths.o |
157 NUKLEAROBJS=$(FONT) nuklear_ui/blastem_nuklear.o nuklear_ui/sfnt.o controller_info.o | 165 NUKLEAROBJS=$(FONT) nuklear_ui/blastem_nuklear.o nuklear_ui/sfnt.o controller_info.o |
158 RENDEROBJS=render_sdl.o ppm.o | 166 RENDEROBJS=render_sdl.o ppm.o |
159 LIBZOBJS=zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/gzclose.o zlib/gzlib.o zlib/gzread.o\ | |
160 zlib/gzwrite.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o | |
161 | 167 |
162 ifdef NOZLIB | 168 ifdef NOZLIB |
163 CFLAGS+= -DDISABLE_ZLIB | 169 CFLAGS+= -DDISABLE_ZLIB |
164 else | 170 else |
165 RENDEROBJS+= $(LIBZOBJS) png.o | 171 RENDEROBJS+= $(LIBZOBJS) png.o |
198 LIBOBJS+= sms.o $(Z80OBJS) | 204 LIBOBJS+= sms.o $(Z80OBJS) |
199 endif | 205 endif |
200 | 206 |
201 ifeq ($(OS),Windows) | 207 ifeq ($(OS),Windows) |
202 MAINOBJS+= res.o | 208 MAINOBJS+= res.o |
209 endif | |
210 | |
211 ifdef CONFIG_PATH | |
212 CFLAGS+= -DCONFIG_PATH='"'$(CONFIG_PATH)'"' | |
213 endif | |
214 | |
215 ifdef DATA_PATH | |
216 CFLAGS+= -DDATA_PATH='"'$(DATA_PATH)'"' | |
203 endif | 217 endif |
204 | 218 |
205 ALL=dis$(EXE) zdis$(EXE) stateview$(EXE) vgmplay$(EXE) blastem$(EXE) | 219 ALL=dis$(EXE) zdis$(EXE) stateview$(EXE) vgmplay$(EXE) blastem$(EXE) |
206 ifneq ($(OS),Windows) | 220 ifneq ($(OS),Windows) |
207 ALL+= termhelper | 221 ALL+= termhelper |