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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
|
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = foreign
### DEFS = @DEFS@ -DLIBDIR=\"${pkgdatadir}\"
DEFS = @DEFS@
X_DEFS = -DLC_X11=1
SVGA_DEFS = -DSVGALIB=1
SUBDIRS = m4 intl po
## (deleted)
## acconfig.h \
## config.h \
noinst_HEADERS = \
cliglobs.h \
common.h confw32.h \
engglobs.h engine.h fileutil.h \
generic.h geometry.h dialbox.h \
lcconfig.h \
lchelp.h \
lcintl.h lcstring.h lclib.h\
lctypes.h lcwin32.h \
lcx11.h lcsvga.h \
ldsvgui.h ldsvguts.h \
lin-city.h lintypes.h market.h \
module_buttons.h \
mouse.h mps.h pbar.h \
picedit.h pixmap.h power.h \
resource.h screen.h \
shrglobs.h stats.h \
simulate.h timer.h transport.h \
typeinit.h xpicedit.h
# Directories that need to have CVS and ca subdirectories removed
LC_DISTDIRS = \
help icons messages \
old.Makefiles opening tools
##EXTRA_DIST = config.rpath $(LC_DISTDIRS) \
EXTRA_DIST = $(LC_DISTDIRS) \
colour.pal \
lcwin32.c winmain.c \
lincity.ico small.ico lincity.rc \
CHANGES COPYRIGHT Acknowledgements \
config.sh \
README.profiling \
lincity.6
man_MANS = lincity.6
## pkgdata_DATA = help/* icons/* messages/* messages/ca/* opening/* colour.pal
## pkgdata_DATA = help/* icons/* messages/* opening/* colour.pal
## nobase_pkgdata_DATA = help/* icons/* messages/ca/* messages/* opening/* colour.pal
nobase_pkgdata_DATA = help/* icons/* messages/* opening/* colour.pal
############################################################################
## INSTALL SCRIPTS
############################################################################
## There are three "non-standard" things that I need to do here.
## 1) I need to make the directories .../share/lincity/help, icons,
## messages and opening because automake is not smart enough to do this.
## 2) I need to check to see if the user chose to make the optionally
## compiled picedit/xpicedit, and install these.
## 3) I need to set the suid bit on lincity/picedit.
############################################################################
########### GCS Jan 19, 2003
############################################################################
## 1) No longer need to make the directories. Automake now supports the
## "nobase" option.
## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/help
## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/icons
## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/messages
## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/opening
## 2) Removed the following line from install-exec-local:
## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/messages/ca
############################################################################
install-exec-local:
@list='$(EXTRA_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
$(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
else :; fi; \
done; \
if test -f $(DESTDIR)$(bindir)/`echo lincity|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; then \
chown root $(DESTDIR)$(bindir)/`echo lincity|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
chmod 4755 $(DESTDIR)$(bindir)/`echo lincity|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
fi
## Uninstall also removes the extra programs and directories
uninstall-local:
list='$(EXTRA_PROGRAMS)'; for p in $$list; do \
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
done
rm -rf $(DESTDIR)$(pkgdatadir)
############################################################################
## DISTRIBUTION BUILD SCRIPTS
## --
## This is needed to keep the CVS directories from being installed in
## my subdirectories.
## --
## GCS Jan 19, 2003 Added a check for deleting the "ca" subdirectory
## Added lowercase "cvs" directory (when copied from dos)
## (removed this!)
## cp -r $$p $(distdir)/$$p; \
## (modified this)
# if test -d $(distdir)/$$p/CVS ; then \
# echo "rm -rf $(distdir)/$$p/CVS" ; \
# rm -rf $(distdir)/$$p/CVS ; \
# echo "rm -rf $(distdir)/$$p/*/CVS" ; \
# rm -rf $(distdir)/$$p/*/CVS ; \
# echo "rm -rf $(distdir)/$$p/*/*/CVS" ; \
# rm -rf $(distdir)/$$p/*/*/CVS ; \
# echo "rm -rf $(distdir)/$$p/cvs" ; \
# rm -rf $(distdir)/$$p/cvs ; \
# echo "rm -rf $(distdir)/$$p/*/cvs" ; \
# rm -rf $(distdir)/$$p/*/cvs ; \
# echo "rm -rf $(distdir)/$$p/*/*/cvs" ; \
# rm -rf $(distdir)/$$p/*/*/cvs ; \
# else :; fi; \
##
## echo "Erasing CVS directories..." \
############################################################################
dist-hook:
@list='$(LC_DISTDIRS)'; for p in $$list; do \
rm -rf `find $(distdir)/$$p -name CVS -print` ; \
rm -rf `find $(distdir)/$$p -name cvs -print` ; \
rm -rf `find $(distdir)/$$p -name ca -print` ; \
done
############################################################################
## PROGRAM BUILD SCRIPTS
############################################################################
## These executables might not be built
EXTRA_PROGRAMS = xlincity lincity xpicedit picedit
X_PROGS: xlincity$(EXEEXT)
SVGA_PROGS: lincity$(EXEEXT)
LCSERVER_PROGS: lcserver$(EXEEXT)
## These executables are always built
bin_PROGRAMS = @PROGS@
XLC_OBJ = \
x_ldsvgui.o x_splash.o x_lchelp.o x_main.o x_mouse.o \
x_cliglobs.o x_mps.o x_screen.o x_lcx11.o x_pixmap.o x_geometry.o \
x_pbar.o x_dialbox.o x_module_buttons.o
LC_OBJ = \
vga_ldsvgui.o vga_splash.o vga_lchelp.o vga_main.o vga_mouse.o \
vga_cliglobs.o vga_mps.o vga_lcsvga.o vga_screen.o vga_geometry.o \
vga_pbar.o vga_dialbox.o vga_module_buttons.o
## Note: If the executable requires a prefix (x_ or vga_), then
## it should be listed below under EXTRA_*_SOURCES. Otherwise,
## it is a "regular" source file.
## ----- xlincity -----
xlincity_SOURCES = \
lclib.c power.c \
ldsvguts.c engine.c transport.c market.c \
simulate.c shrtypes.c lintypes.c \
timer.c fileutil.c shrglobs.c stats.c
EXTRA_xlincity_SOURCES = \
ldsvgui.c splash.c lchelp.c main.c mouse.c mps.c screen.c \
pixmap.c cliglobs.c geometry.c pbar.c module_buttons.c \
dialbox.c \
lcx11.c
xlincity_DEPENDENCIES = \
${XLC_OBJ}
xlincity_LDADD = \
${XLC_OBJ} \
@X_LIBS@ -lXext -lX11 -lm
## ----- lincity -----
lincity_SOURCES = \
lclib.c power.c \
ldsvguts.c engine.c transport.c market.c \
simulate.c shrtypes.c lintypes.c \
timer.c fileutil.c shrglobs.c stats.c
EXTRA_lincity_SOURCES = \
ldsvgui.c splash.c lchelp.c main.c mouse.c mps.c screen.c \
pixmap.c cliglobs.c geometry.c pbar.c module_buttons.c \
dialbox.c \
lcsvga.c
lincity_DEPENDENCIES = \
${LC_OBJ}
lincity_LDADD = \
${LC_OBJ} \
-lvgagl -lvga -lm
## ----- xpicedit -----
xpicedit_SOURCES =
EXTRA_xpicedit_SOURCES = picedit.c
xpicedit_LDADD = x_picedit.o -lXext -lX11 -lm
## ----- picedit -----
picedit_SOURCES =
EXTRA_picedit_SOURCES = picedit.c
picedit_LDADD = vga_picedit.o -lvgagl -lvga -lm
## ----------------- VGA RULES ------------------
vga_cliglobs.o: cliglobs.c cliglobs.h
$(COMPILE) $(SVGA_DEFS) -o vga_cliglobs.o -c cliglobs.c
vga_splash.o: splash.c
$(COMPILE) $(SVGA_DEFS) -o vga_splash.o -c splash.c
vga_ldsvgui.o: ldsvgui.c
$(COMPILE) $(SVGA_DEFS) -o vga_ldsvgui.o -c ldsvgui.c
vga_geometry.o: geometry.c geometry.h
$(COMPILE) $(SVGA_DEFS) -o vga_geometry.o -c geometry.c
vga_lchelp.o: lchelp.c lchelp.h lin-city.h lctypes.h module_buttons.h
$(COMPILE) $(SVGA_DEFS) -o vga_lchelp.o -c lchelp.c
vga_lcsvga.o: lcsvga.c lcsvga.h lin-city.h lctypes.h
$(COMPILE) $(SVGA_DEFS) -o vga_lcsvga.o -c lcsvga.c
vga_main.o: main.c lin-city.h lctypes.h
$(COMPILE) $(SVGA_DEFS) -o vga_main.o -c main.c
vga_mouse.o: mouse.c mouse.h lin-city.h lctypes.h module_buttons.h
$(COMPILE) $(SVGA_DEFS) -o vga_mouse.o -c mouse.c
vga_mps.o: mps.c mps.h lin-city.h lctypes.h
$(COMPILE) $(SVGA_DEFS) -o vga_mps.o -c mps.c
vga_pbar.o: pbar.c pbar.h lin-city.h shrglobs.h lchelp.h cliglobs.h
$(COMPILE) $(SVGA_DEFS) -o vga_pbar.o -c pbar.c
vga_screen.o: screen.c screen.h lin-city.h lctypes.h module_buttons.h
$(COMPILE) $(SVGA_DEFS) -o vga_screen.o -c screen.c
vga_dialbox.o: dialbox.c dialbox.h geometry.h
$(COMPILE) $(SVGA_DEFS) -o vga_dialbox.o -c dialbox.c
vga_module_buttons.o: module_buttons.c module_buttons.h lin-city.h lctypes.h \
mouse.h
$(COMPILE) $(SVGA_DEFS) -o vga_module_buttons.o -c module_buttons.c
## ----------------- X RULES ------------------
x_cliglobs.o: cliglobs.c cliglobs.h
$(COMPILE) $(X_DEFS) -o x_cliglobs.o -c cliglobs.c
x_splash.o: splash.c
$(COMPILE) $(X_DEFS) -o x_splash.o -c splash.c
x_ldsvgui.o: ldsvgui.c
$(COMPILE) $(X_DEFS) -o x_ldsvgui.o -c ldsvgui.c
x_geometry.o: geometry.c geometry.h
$(COMPILE) $(X_DEFS) -o x_geometry.o -c geometry.c
x_lchelp.o: lchelp.c lchelp.h lin-city.h lctypes.h module_buttons.h
$(COMPILE) $(X_DEFS) -o x_lchelp.o -c lchelp.c
x_lcx11.o: lcx11.c lcx11.h lin-city.h lctypes.h
$(COMPILE) $(X_DEFS) -o x_lcx11.o -c lcx11.c
x_pixmap.o: pixmap.c lcx11.h lin-city.h lctypes.h
$(COMPILE) $(X_DEFS) -o x_pixmap.o -c pixmap.c
x_main.o: main.c lin-city.h lctypes.h lcx11.h
$(COMPILE) $(X_DEFS) -o x_main.o -c main.c
x_mouse.o: mouse.c mouse.h lin-city.h lctypes.h module_buttons.h
$(COMPILE) $(X_DEFS) -o x_mouse.o -c mouse.c
x_mps.o: mps.c mps.h lin-city.h lctypes.h
$(COMPILE) $(X_DEFS) -o x_mps.o -c mps.c
x_pbar.o: pbar.c pbar.h lin-city.h shrglobs.h lchelp.h cliglobs.h
$(COMPILE) $(X_DEFS) -o x_pbar.o -c pbar.c
x_screen.o: screen.c screen.h lin-city.h lctypes.h lcx11.h module_buttons.h
$(COMPILE) $(X_DEFS) -o x_screen.o -c screen.c
x_dialbox.o: dialbox.c dialbox.h lcx11.h geometry.h
$(COMPILE) $(X_DEFS) -o x_dialbox.o -c dialbox.c
x_module_buttons.o: module_buttons.c module_buttons.h lin-city.h lctypes.h \
mouse.h
$(COMPILE) $(X_DEFS) -o x_module_buttons.o -c module_buttons.c
## ----------------- PICEDIT RULES ------------------
x_picedit.o: picedit.c
$(COMPILE) $(X_DEFS) -o x_picedit.o -c picedit.c
vga_picedit.o: picedit.c
$(COMPILE) $(X_DEFS) -o vga_picedit.o -c picedit.c
ACLOCAL_AMFLAGS = -I m4
|