1## Process this file with automake to produce Makefile.in 2 3AUTOMAKE_OPTIONS = foreign 4 5### DEFS = @DEFS@ -DLIBDIR=\"${pkgdatadir}\" 6DEFS = @DEFS@ 7X_DEFS = -DLC_X11=1 -Wall 8SVGA_DEFS = -DSVGALIB=1 9 10SUBDIRS = m4 intl po modules 11 12## (deleted) 13## acconfig.h \ 14## config.h \ 15 16noinst_HEADERS = \ 17 cliglobs.h \ 18 common.h confw32.h \ 19 engglobs.h engine.h fileutil.h \ 20 generic.h geometry.h dialbox.h \ 21 lcconfig.h \ 22 lchelp.h \ 23 lcintl.h lcstring.h lclib.h\ 24 lctypes.h lcwin32.h \ 25 lcx11.h lcsvga.h \ 26 ldsvgui.h ldsvguts.h \ 27 lin-city.h lintypes.h market.h \ 28 module_buttons.h \ 29 mouse.h mps.h pbar.h \ 30 picedit.h pixmap.h power.h \ 31 readpng.h \ 32 resource.h screen.h \ 33 shrglobs.h stats.h \ 34 simulate.h timer.h transport.h \ 35 typeinit.h xpicedit.h modules.h 36 37# Directories that need to have CVS and ca subdirectories removed 38LC_DISTDIRS = \ 39 help icons messages \ 40 old.Makefiles opening tools 41 42##EXTRA_DIST = config.rpath $(LC_DISTDIRS) \ 43 44EXTRA_DIST = $(LC_DISTDIRS) \ 45 colour.pal \ 46 lcwin32.c winmain.c \ 47 lincity.ico small.ico lincity.rc \ 48 CHANGES COPYRIGHT Acknowledgements \ 49 config.sh \ 50 README.profiling \ 51 lincity.6 52 53man_MANS = lincity.6 54## pkgdata_DATA = help/* icons/* messages/* messages/ca/* opening/* colour.pal 55## pkgdata_DATA = help/* icons/* messages/* opening/* colour.pal 56## nobase_pkgdata_DATA = help/* icons/* messages/ca/* messages/* opening/* colour.pal 57nobase_pkgdata_DATA = help/* icons/* messages/* opening/* colour.pal 58 59 60############################################################################ 61## INSTALL SCRIPTS 62############################################################################ 63## There are three "non-standard" things that I need to do here. 64## 1) I need to make the directories .../share/lincity/help, icons, 65## messages and opening because automake is not smart enough to do this. 66## 2) I need to check to see if the user chose to make the optionally 67## compiled picedit/xpicedit, and install these. 68## 3) I need to set the suid bit on lincity/picedit. 69############################################################################ 70########### GCS Jan 19, 2003 71############################################################################ 72## 1) No longer need to make the directories. Automake now supports the 73## "nobase" option. 74## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) 75## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/help 76## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/icons 77## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/messages 78## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/opening 79## 2) Removed the following line from install-exec-local: 80## $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/messages/ca 81############################################################################ 82 83install-exec-local: 84 @list='$(EXTRA_PROGRAMS)'; for p in $$list; do \ 85 if test -f $$p; then \ 86 echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ 87 $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ 88 else :; fi; \ 89 done; \ 90 if test -f $(DESTDIR)$(bindir)/`echo lincity|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; then \ 91 chown root $(DESTDIR)$(bindir)/`echo lincity|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ 92 chmod 4755 $(DESTDIR)$(bindir)/`echo lincity|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ 93 fi 94 95## Uninstall also removes the extra programs and directories 96uninstall-local: 97 list='$(EXTRA_PROGRAMS)'; for p in $$list; do \ 98 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ 99 done 100 rm -rf $(DESTDIR)$(pkgdatadir) 101 102 103############################################################################ 104## DISTRIBUTION BUILD SCRIPTS 105## -- 106## This is needed to keep the CVS directories from being installed in 107## my subdirectories. 108## -- 109## GCS Jan 19, 2003 Added a check for deleting the "ca" subdirectory 110## Added lowercase "cvs" directory (when copied from dos) 111## (removed this!) 112## cp -r $$p $(distdir)/$$p; \ 113## (modified this) 114# if test -d $(distdir)/$$p/CVS ; then \ 115# echo "rm -rf $(distdir)/$$p/CVS" ; \ 116# rm -rf $(distdir)/$$p/CVS ; \ 117# echo "rm -rf $(distdir)/$$p/*/CVS" ; \ 118# rm -rf $(distdir)/$$p/*/CVS ; \ 119# echo "rm -rf $(distdir)/$$p/*/*/CVS" ; \ 120# rm -rf $(distdir)/$$p/*/*/CVS ; \ 121# echo "rm -rf $(distdir)/$$p/cvs" ; \ 122# rm -rf $(distdir)/$$p/cvs ; \ 123# echo "rm -rf $(distdir)/$$p/*/cvs" ; \ 124# rm -rf $(distdir)/$$p/*/cvs ; \ 125# echo "rm -rf $(distdir)/$$p/*/*/cvs" ; \ 126# rm -rf $(distdir)/$$p/*/*/cvs ; \ 127# else :; fi; \ 128## 129## echo "Erasing CVS directories..." \ 130############################################################################ 131dist-hook: 132 @list='$(LC_DISTDIRS)'; for p in $$list; do \ 133 rm -rf `find $(distdir)/$$p -name CVS -print` ; \ 134 rm -rf `find $(distdir)/$$p -name cvs -print` ; \ 135 rm -rf `find $(distdir)/$$p -name ca -print` ; \ 136 done 137 138 139############################################################################ 140## PROGRAM BUILD SCRIPTS 141############################################################################ 142 143## These executables might not be built 144EXTRA_PROGRAMS = xlincity lincity xpicedit picedit 145 146EXTRA_LTLIBRARIES = liblcx.la liblcsvga.la 147X_PROGS: xlincity$(EXEEXT) 148SVGA_PROGS: lincity$(EXEEXT) 149LCSERVER_PROGS: lcserver$(EXEEXT) 150 151LCX_LIBS: liblcx.la 152LCSVGA_LIBS: liblcsvga.la 153 154## These executables are always built 155bin_PROGRAMS = @PROGS@ 156lib_LTLIBRARIES = @LCLIBS@ 157 158## Note: If the source file makes use of any graphic routines, it should 159## be listed under gui_SOURCES, otherwise its safe for engine_SOURCES 160 161## XXX: fileutil.c uses HandleError, a platform specific function, yet 162## its compiled without appropriate -Ds. Fixme post 1.13.1 163 164gui_SOURCES = ldsvgui.c splash.c lchelp.c main.c mouse.c mps.c screen.c \ 165 pixmap.c cliglobs.c geometry.c pbar.c module_buttons.c \ 166 dialbox.c 167 168engine_SOURCES = lclib.c power.c ldsvguts.c engine.c transport.c market.c \ 169 simulate.c shrtypes.c lintypes.c readpng.c timer.c fileutil.c \ 170 shrglobs.c stats.c 171 172liblcx_la_SHORTNAME = lcx 173liblcx_la_SOURCES = $(gui_SOURCES) lcx11.c 174liblcx_la_LIBADD = @X_LIBS@ -lXext -lX11 -lpng -lz -lm 175liblcx_la_CPPFLAGS = $(X_DEFS) 176 177liblcsvga_la_SHORTNAME = lcsvga 178liblcsvga_la_SOURCES = $(gui_SOURCES) lcsvga.c 179liblcsvga_la_LIBADD = @SVGA_LIBS@ -lvgagl -lvga -lpng -lz -lm 180liblcsvga_la_CPPFLAGS = $(SVGA_DEFS) 181 182 183lincity_SOURCES = $(engine_SOURCES) 184lincity_DEPENDENCIES = LCSVGA_LIBS modules/libmodules.la 185lincity_LDADD = liblcsvga.la modules/libmodules.la 186 187xlincity_SOURCES = $(engine_SOURCES) 188xlincity_DEPENDENCIES = LCX_LIBS modules/libmodules.la 189xlincity_LDADD = liblcx.la modules/libmodules.la 190 191## ----- xpicedit ----- 192xpicedit_SOURCES = 193EXTRA_xpicedit_SOURCES = picedit.c 194xpicedit_LDADD = x_picedit.o -lXext -lX11 -lm 195 196## ----- picedit ----- 197picedit_SOURCES = 198EXTRA_picedit_SOURCES = picedit.c 199picedit_LDADD = vga_picedit.o -lvgagl -lvga -lm 200 201 202## ----------------- PICEDIT RULES ------------------ 203x_picedit.o: picedit.c 204 $(COMPILE) $(X_DEFS) -o x_picedit.o -c picedit.c 205 206vga_picedit.o: picedit.c 207 $(COMPILE) $(X_DEFS) -o vga_picedit.o -c picedit.c 208 209 210ACLOCAL_AMFLAGS = -I m4 211 212