comparison Makefile.gen @ 502:e1526854e735

Add install target for Unix Makefile that installs tool binaries only, to /usr/local/bin by default.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 17 Nov 2012 17:04:44 +0200
parents 966617f0f6cd
children 2a70f5902b70
comparison
equal deleted inserted replaced
501:d13d8770477a 502:e1526854e735
60 BUILD_RES=yes 60 BUILD_RES=yes
61 DM_CFLAGS += -DDM_USE_PACKFS $(ZLIB_CFLAGS) 61 DM_CFLAGS += -DDM_USE_PACKFS $(ZLIB_CFLAGS)
62 DM_LDFLAGS += $(ZLIB_LDFLAGS) 62 DM_LDFLAGS += $(ZLIB_LDFLAGS)
63 DMLIB_OBJS += dmpack.o dmpackutil.o 63 DMLIB_OBJS += dmpack.o dmpackutil.o
64 ifeq ($(DM_BUILD_TOOLS),yes) 64 ifeq ($(DM_BUILD_TOOLS),yes)
65 BINARIES += packed 65 TOOL_BINARIES += packed
66 endif 66 endif
67 endif 67 endif
68 68
69 ifeq ($(DM_USE_STDIO),yes) 69 ifeq ($(DM_USE_STDIO),yes)
70 BUILD_RES=yes 70 BUILD_RES=yes
102 ifeq ($(DM_GFX_BM_TEXT),yes) 102 ifeq ($(DM_GFX_BM_TEXT),yes)
103 DM_CFLAGS += -DDM_GFX_BM_TEXT 103 DM_CFLAGS += -DDM_GFX_BM_TEXT
104 DMLIB_OBJS += dmtext_bm.o 104 DMLIB_OBJS += dmtext_bm.o
105 ifeq ($(DM_BUILD_TOOLS),yes) 105 ifeq ($(DM_BUILD_TOOLS),yes)
106 ifeq ($(DM_USE_STDIO),yes) 106 ifeq ($(DM_USE_STDIO),yes)
107 BINARIES += fontconv 107 TOOL_BINARIES += fontconv
108 endif 108 endif
109 endif 109 endif
110 endif 110 endif
111 111
112 ifeq ($(DM_GFX_TTF_TEXT),yes) 112 ifeq ($(DM_GFX_TTF_TEXT),yes)
190 190
191 ### Dependancies 191 ### Dependancies
192 ifeq ($(DM_BUILD_TOOLS),yes) 192 ifeq ($(DM_BUILD_TOOLS),yes)
193 DMLIB_OBJS += libgfx.o lib64gfx.o 193 DMLIB_OBJS += libgfx.o lib64gfx.o
194 ifeq ($(DM_USE_STDIO),yes) 194 ifeq ($(DM_USE_STDIO),yes)
195 BINARIES+= objlink data2inc gfxconv gentab 195 TOOL_BINARIES+= objlink data2inc gfxconv gentab
196 ifeq ($(SUP_MODLOAD),yes) 196 ifeq ($(SUP_MODLOAD),yes)
197 BINARIES+= viewmod mod2wav testpl 197 TOOL_BINARIES+= viewmod mod2wav testpl
198 ifeq ($(DM_GFX_BLITS),yes) 198 ifeq ($(DM_GFX_BLITS),yes)
199 BINARIES+= view64 199 TOOL_BINARIES+= view64
200 ifeq ($(DM_GFX_BM_TEXT),yes) 200 ifeq ($(DM_GFX_BM_TEXT),yes)
201 ifeq ($(DM_GFX_MISC),yes) 201 ifeq ($(DM_GFX_MISC),yes)
202 BINARIES+= ppl 202 TOOL_BINARIES+= ppl
203 endif 203 endif
204 endif 204 endif
205 endif 205 endif
206 endif 206 endif
207 207
208 ifeq ($(JSS_SUP_JSSMOD),yes) 208 ifeq ($(JSS_SUP_JSSMOD),yes)
209 ifeq ($(JSS_SUP_XM),yes) 209 ifeq ($(JSS_SUP_XM),yes)
210 BINARIES+= xm2jss 210 TOOL_BINARIES+= xm2jss
211 endif 211 endif
212 endif 212 endif
213 endif 213 endif
214 endif 214 endif
215 215
240 240
241 ifeq ($(DM_BUILD_TESTS),yes) 241 ifeq ($(DM_BUILD_TESTS),yes)
242 BINARIES += vecmattest fptest 242 BINARIES += vecmattest fptest
243 endif 243 endif
244 244
245 TARGETS += $(DMLIB_A) $(addprefix $(BINPATH),$(addsuffix $(EXEEXT),$(BINARIES))) 245 TOOL_TARGETS = $(addprefix $(BINPATH),$(addsuffix $(EXEEXT),$(TOOL_BINARIES)))
246 TARGETS += $(DMLIB_A) $(addprefix $(BINPATH),$(addsuffix $(EXEEXT),$(BINARIES))) $(TOOL_TARGETS)
246 247
247 all: $(TARGETS) 248 all: $(TARGETS)
248 249
249 ### 250 ###
250 ### Generic rules 251 ### Generic rules