Angband 3.0.9b.
[angband.git] / src / Makefile
blob3c409e6e86f1b3b44c192ffd9daaaa959fba9b6a
1 include ../mk/rules.mk
2 include ../mk/init.mk
3 include ../mk/objective.mk
5 # import source list
6 include Makefile.src
7 HEADERS = $(HDRS) $(INCS)
8 OBJECTS = $(ANGFILES) $(MAINFILES) $(ZFILES)
9 SOURCES = ${OBJECTS:.o=.c}
11 # These are for OS-specific ports; ignore 'em until we use autoconf everywhere.
12 # SUBDIRS = osx win
14 OBJECTIVE_BINS = angband
16 CFLAGS += -I.
18 angband: $(OBJECTS)
19 $(CC) $(OBJECTS) $(LDFLAGS) $(LDADD) -o $@
20 @printf "%10s %-20s\n" LINK $@
22 clean-prehook:
23 -rm autoconf.h
25 install-posthook:
26 @if [ "x$(SETEGID)" != "x" ]; then \
27 printf "%10s $(DESTDIR)$(BINDIR)/angband\n" CHOWN; \
28 if [ "x$(DRY)" = "x" ]; then \
29 chown root:${SETEGID} $(DESTDIR)$(BINDIR)/angband; \
30 chmod g+s $(DESTDIR)$(BINDIR)/angband; \
31 fi; \