URI:
       tMakefile.am - vaccinewars - be a doctor and try to vaccinate the world
  HTML git clone git://src.adamsgaard.dk/vaccinewars
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       tMakefile.am (2403B)
       ---
            1 # Nasty hack; there seems to be no other way of disabling libtool for the
            2 # link of the main executable...
            3 if PLUGINS
            4 MYLINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD)
            5 else
            6 MYLINK = $(CCLD)
            7 endif
            8 
            9 if GUI_CLIENT
           10 GUISUBDIR = gui_client
           11 endif
           12 if CURSES_CLIENT
           13 CURSESSUBDIR = curses_client
           14 endif
           15 if GTKPORT
           16 GTKPORTSUBDIR = gtkport
           17 endif
           18 if CURSESPORT
           19 CURSESPORTSUBDIR = cursesport
           20 endif
           21 
           22 SUBDIRS = $(GUISUBDIR) $(CURSESSUBDIR) $(GTKPORTSUBDIR) $(CURSESPORTSUBDIR) plugins
           23 dopewars_LDADD = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @GTK_LIBS@ @LTLIBINTL@ @WNDRES@ @PLUGOBJS@ @PLUGLIBS@ @GLIB_LIBS@ @LIBCURL@
           24 dopewars_DEPENDENCIES = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @WNDRES@ @PLUGOBJS@
           25 
           26 bin_PROGRAMS = dopewars
           27 dopewars_SOURCES = admin.c admin.h AIPlayer.c AIPlayer.h util.c util.h \
           28                    configfile.c configfile.h convert.c convert.h \
           29                    dopewars.c dopewars.h error.c error.h log.c log.h \
           30                    message.c message.h network.c network.h nls.h \
           31                    serverside.c serverside.h sound.c sound.h \
           32                    tstring.c tstring.h winmain.c winmain.h mac_helpers.h
           33 AM_CPPFLAGS= -I${srcdir} @GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBCURL_CPPFLAGS@
           34 if APPLE
           35 dopewars_SOURCES += mac_helpers.m
           36 MACLDFLAGS = -framework AppKit
           37 else
           38 MACLDFLAGS =
           39 endif
           40 # Since we included (even optionally) an Objective C file, automake will
           41 # use OBJC rather than CC to link
           42 LINK = $(MYLINK) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) $(MACLDFLAGS) -o $@
           43 OBJCLINK = $(MYLINK) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) $(MACLDFLAGS) -o $@
           44 DEFS       = @DEFS@
           45 PIXDIR     = ${DESTDIR}${datadir}/pixmaps
           46 DOPEDIR    = ${DESTDIR}${bindir}
           47 DOPEBIN    = ${DOPEDIR}/dopewars
           48 PIXMAPS    = dopewars-pill.png dopewars-shot.png dopewars-weed.png
           49 EXTRA_DIST = ${PIXMAPS} pill.ico magic dopewars.rc dopewars.manifest
           50 CLEANFILES = dopewars.res dopewars.exe
           51 WINDRES    = @WINDRES@
           52 
           53 install-exec-hook:
           54         @chgrp games ${DOPEBIN} || chgrp wheel ${DOPEBIN} || \
           55           ( echo "WARNING: Cannot change group of dopewars binary - the high"; \
           56             echo "score file may be unreadable or unwriteable by some users" )
           57         chmod 2755 ${DOPEBIN}
           58 
           59 install-data-local:
           60         ${mkinstalldirs} ${PIXDIR}
           61         for pix in ${PIXMAPS}; do \
           62           ${INSTALL} -m 0644 ${srcdir}/$${pix} ${PIXDIR}; \
           63         done
           64 
           65 uninstall-local:
           66         for pix in ${PIXMAPS}; do \
           67           /bin/rm -f ${PIXDIR}/$${pix}; \
           68         done
           69 
           70 %.res: %.rc
           71         ${WINDRES} -O coff -o $@ $<