SUBDIRS = images sounds #There's only one file here so I won't bother with a levels/Makefile.am level_DATA = levels/levels.txt leveldir = $(pkgdatadir)/levels AM_CPPFLAGS = -Wall -O3 -Wno-sign-compare \ ## Having directories defined by automake is nice, but how is the program ## expected to know about them? This is the best I can come up with. -DIMAGESDIR=\"$(pkgdatadir)/images\" -DSOUNDSDIR=\"$(pkgdatadir)/sounds\" \ -DLEVELDIR=\"$(leveldir)\" bin_PROGRAMS = flyhard flyhard_SOURCES = \ flyhard.cpp etc.cpp movers.cpp game.cpp loadimag.cpp arena.cpp enemies.cpp \ explosion.cpp text.cpp weapons.cpp levels.cpp shop.cpp sound.cpp debug.cpp #Let's distribute the headers so people can compile this thing EXTRA_DIST = \ arena.h dirs.h enemies.h explosion.h levels.h movers.h text.h arena_table.h \ etc.h game.h loadimag.h shop.h weapons.h sound.h sound_table.h debug.h \ SDL_inc.h evil_winmain_hack.h \ $(level_DATA) LDADD = $(FH_SDL_LIBS)