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
|
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = foreign
### DEFS = @DEFS@ -DLIBDIR=\"${pkgdatadir}\"
DEFS = @DEFS@
X_DEFS = -DLC_X11=1 -Wall
SVGA_DEFS = -DSVGALIB=1
SUBDIRS = m4 intl po modules
## (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 \
readpng.h \
resource.h screen.h \
shrglobs.h stats.h \
simulate.h timer.h transport.h \
typeinit.h xpicedit.h modules.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
EXTRA_LTLIBRARIES = liblcx.la liblcsvga.la
X_PROGS: xlincity$(EXEEXT)
SVGA_PROGS: lincity$(EXEEXT)
LCSERVER_PROGS: lcserver$(EXEEXT)
LCX_LIBS: liblcx.la
LCSVGA_LIBS: liblcsvga.la
## These executables are always built
bin_PROGRAMS = @PROGS@
lib_LTLIBRARIES = @LCLIBS@
## Note: If the source file makes use of any graphic routines, it should
## be listed under gui_SOURCES, otherwise its safe for engine_SOURCES
## XXX: fileutil.c uses HandleError, a platform specific function, yet
## its compiled without appropriate -Ds. Fixme post 1.13.1
gui_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
engine_SOURCES = lclib.c power.c ldsvguts.c engine.c transport.c market.c \
simulate.c shrtypes.c lintypes.c readpng.c timer.c fileutil.c \
shrglobs.c stats.c
liblcx_la_SHORTNAME = lcx
liblcx_la_SOURCES = $(gui_SOURCES) lcx11.c
liblcx_la_LIBADD = @X_LIBS@ -lXext -lX11 -lpng -lz -lm
liblcx_la_CPPFLAGS = $(X_DEFS)
liblcsvga_la_SHORTNAME = lcsvga
liblcsvga_la_SOURCES = $(gui_SOURCES) lcsvga.c
liblcsvga_la_LIBADD = @SVGA_LIBS@ -lvgagl -lvga -lpng -lz -lm
liblcsvga_la_CPPFLAGS = $(SVGA_DEFS)
lincity_SOURCES = $(engine_SOURCES)
lincity_DEPENDENCIES = LCSVGA_LIBS modules/libmodules.la
lincity_LDADD = liblcsvga.la modules/libmodules.la
xlincity_SOURCES = $(engine_SOURCES)
xlincity_DEPENDENCIES = LCX_LIBS modules/libmodules.la
xlincity_LDADD = liblcx.la modules/libmodules.la
## ----- 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
## ----------------- 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
|