source: abuse/tags/pd/abuse/Makefile.am @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 11 years ago
  • Imported original public domain release, for future reference.
File size: 2.9 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3bin_SCRIPTS = abuse
4pkglib_PROGRAMS = abuse.x11R6 $(PROGS)
5EXTRA_PROGRAMS = abuse.console keydrv lnx_sdrv sgi_sdrv aix_sdrv
6pkgdata_DATA = abuse.lsp light.tbl
7
8abuse_x11R6_SOURCES = src/net/mac/tcpip.c src/specache.c src/netcfg.c \
9        src/text_gui.c src/innet.c src/net/unix/gserver.c \
10        src/net/unix/gclient.c src/net/unix/fileman.c src/net/sock.c \
11        src/chat.c src/endgame.c src/setup.c src/version.c \
12        src/loadgame.c src/profile.c src/cop.c src/statbar.c \
13        src/compiled.c src/ant.c src/sensor.c src/lisp_opt.c src/demo.c \
14        src/lcache.c src/lisp_gc.c src/nfclient.c src/username.c \
15        src/clisp.c src/gui.c src/transp.c src/collide.c src/trig.c \
16        src/property.c src/lisp.c src/cache.c src/particle.c \
17        src/objects.c src/extend.c src/console.c src/ability.c \
18        src/items.c src/dev.c src/chars.c src/level.c src/smallfnt.c \
19        src/automap.c src/help.c src/intsect.c src/loader2.c src/seq.c \
20        src/points.c src/fnt6x13.c src/morpher.c src/menu.c \
21        src/director.c src/view.c src/config.c src/game.c src/light.c \
22        src/devsel.c src/crc.c src/gamma.c src/language.c \
23        ../imlib/sprite.c
24abuse_console_SOURCES = $(abuse_x11R6_SOURCES)
25keydrv_SOURCES = src/keydrv.c
26
27lnx_sdrv_SOURCES = ../imlib/port/linux/lnx_sdrv.c
28sgi_sdrv_SOURCES = ../imlib/port/sgi/sgi_sdrv.c
29sgi_sdrv_LDADD = -laudio
30aix_sdrv_SOURCES = ../imlib/port/aix/aix_sdrv.c
31aix_sdrv_LDADD = -lUMSobj
32
33IMLIBS = ../imlib/libimage.a ../imlib/libgui.a \
34        ../imlib/libdir.a ../imlib/libtime.a ../imlib/libsound.a \
35        ../imlib/libjoy.a ../imlib/libpacket.a
36abuse_x11R6_LDADD = $(IMLIBS) ../imlib/libwinman.a \
37        $(X_LIBS) -lX11 -lXext -lm
38abuse_console_LDADD = $(IMLIBS) ../imlib/libsvgawin.a -lvga -lm
39
40INCLUDES = -I$(srcdir)/inc -I$(srcdir)/../imlib/include \
41           -I$(srcdir)/src/net/inc -I$(srcdir)/src/net/unix
42
43MYDEFS = -DMANAGE_MEM -DNO_CHECK
44CXXFLAGS = -g -O2
45
46COMPILE = $(CXX) $(DEFS) $(MYDEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) $(ADDCXXFLAGS) -o $@
47
48debug:
49        $(MAKE) DEFS='-DMANAGE_MEM -DMEM_CHECK' CXXFLAGS=-g
50opt:
51        $(MAKE) DEFS='-DMANAGE_MEM -DNO_CHECK' CXXFLAGS=-O2
52profile:
53        $(MAKE) DEFS='-DMANAGE_MEM -DNO_CHECK' CXXFLAGS='-O2 -g -pg'
54
55../imlib/port/aix/aix_sdrv.o: ../imlib/port/aix/aix_sdrv.c
56        cc -qcpluscmt -O2 -I/usr/lpp/UMS/include -I/usr/lpp/som/include -o $@ -c $<
57
58install-data-local:
59        for f in `(cd $(srcdir); find addon art levels lisp register sfx -type d -print)`; do \
60          $(mkinstalldirs) $(pkgdatadir)/$$f; \
61        done
62        for f in `(cd $(srcdir); find addon art levels lisp register sfx -type f -print)`; do \
63          echo " $(INSTALL_DATA) $(srcdir)/$$f $(pkgdatadir)/$$f"; \
64          $(INSTALL_DATA) $(srcdir)/$$f $(pkgdatadir)/$$f; \
65        done
66
67uninstall-local:
68        rm -rf $(pkgdatadir) $(pkglibdir)
69
70install-exec-local:
71        -if [ -f $(pkglibdir)/abuse.console ]; then \
72          : *** abuse.console needs to run setuid root; \
73          : *** if this fails, set it up yourself; \
74          chown root $(pkglibdir)/abuse.console \
75          && chmod 4755 $(pkglibdir)/abuse.console ; \
76        fi
Note: See TracBrowser for help on using the repository browser.