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