Build fixes. Now works with automake 1.5 and autoconf 2.52. --enable-editor option...
[btb/d2x.git] / main / Makefile.am
1 EXTRA_SUBDIRS = editor old
2
3 noinst_LIBRARIES = libmain.a
4
5 CFLAGS += -fwritable-strings
6
7 INCLUDES = -I$(top_srcdir)/includes -I$(top_srcdir)/arch/include
8
9 if USE_NETWORK
10 NETWORK_SRCS = ipx_drv.c multi.c multibot.c kmatrix.c
11 else
12 NETWORK_SRCS =
13 endif
14
15 if EDITOR
16 EDITOR_SRCS = bmread.c
17 else
18 EDITOR_SRCS =
19 endif
20
21 libmain_a_SOURCES = ${NETWORK_SRCS} \
22 ai.c        gamerend.c  lighting.c  paging.c    switch.c \
23 ai2.c       effects.c   gamesave.c  menu.c      physics.c   texmerge.c \
24 aipath.c    endlevel.c  gameseg.c   mglobal.c   piggy.c     text.c \
25 automap.c   escort.c    gameseq.c   mission.c   playsave.c  titles.c \
26 bm.c        fireball.c  gauges.c    morph.c     polyobj.c   vclip.c \
27 fuelcen.c   hostage.c   powerup.c   wall.c \
28 cntrlcen.c  fvi.c       hud.c       render.c    weapon.c \
29 collide.c   game.c      inferno.c   netmisc.c   robot.c \
30 config.c    gamecntl.c  kconfig.c   network.c   scores.c \
31 controls.c  gamefont.c  kludge.c    newdemo.c   slew.c \
32 credits.c   gamemine.c  newmenu.c   songs.c \
33 crypt.c     gamepal.c   laser.c     object.c    state.c \
34 console.c   cmd.c
35
36 EXTRA_DIST = ${EXTRA_SUBDIRS} \
37 descent.cfg inferno.ini \
38 link.bat \
39 ai.h aistruct.h automap.h bm.h bmread.h cdrom.h cntrlcen.h collide.h \
40 compbit.h config.h controls.h credits.h desc_id.h desw.h digi.h effects.h \
41 endlevel.h fireball.h fuelcen.h fvi.h fvi_a.h game.h gamefont.h gamemine.h \
42 gamepal.h gamesave.h gameseg.h gameseq.h gamestat.h gauges.h hostage.h \
43 inferno.h joydefs.h kconfig.h kmatrix.h laser.h lighting.h menu.h mission.h \
44 modem.h morph.h movie.h multi.h multibot.h netmisc.h network.h newdemo.h \
45 newmenu.h object.h paging.h physics.h piggy.h player.h playsave.h polyobj.h \
46 powerup.h render.h robot.h scores.h screens.h segment.h segpoint.h slew.h \
47 songs.h sounds.h state.h switch.h terrain.h texmerge.h text.h textures.h \
48 titles.h vclip.h vers_id.h wall.h weapon.h \
49 dumpmine.c ipx_drv.c