source: ttyvaders/trunk/Makefile @ 12

Last change on this file since 12 was 12, checked in by Sam Hocevar, 18 years ago
  • First commit. Scrolling works, some weaponry, controls, tunnel blowing, the nuke is still ugly, almost no collision detection. Nice demo :)
File size: 835 bytes
RevLine 
[12]1
2# Fallback to ncurses if this is set to 0
3USE_SLANG = 1
4
5CC = gcc
6CFLAGS = -g -O6 -fno-strength-reduce -fomit-frame-pointer
7
8# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
9CFLAGS += -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs
10
11ifeq (1,$(USE_SLANG))
12CFLAGS += -DUSE_SLANG
13EXECLIBS = -lslang -lm
14else
15CFLAGS += -DUSE_NCURSES
16EXECLIBS = -lncurses -lm
17endif
18
19COMPILE_CMD = $(CC) -c $(ALL_CFLAGS)
20
21PROGRAM = ttyvaders
22SOURCES = main.c graphics.c tunnel.c starfield.c player.c weapons.c collide.c explosions.c aliens.c
23HEADERS = common.h
24OBJECTS = $(SOURCES:%.c=%.o)
25
26all: $(PROGRAM)
27
28ttyvaders: $(OBJECTS)
29        $(CC) -o $@ $(LDFLAGS) $^ $(EXECLIBS)
30
31$(OBJECTS): Makefile $(HEADERS)
32
33clean:
34        -/bin/rm -f $(PROGRAM) $(OBJECTS)
35
Note: See TracBrowser for help on using the repository browser.