File: Makefile

package info (click to toggle)
stax 1.0-13
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 836 kB
  • ctags: 258
  • sloc: ansic: 3,209; makefile: 56; sh: 2
file content (21 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FLAGS=-Wall

OBJS=clobber.o config.o coop.o input.o main.o puzzle.o shared.o shifty.o sucka.o

help:
	@echo
	@echo "Type 'make <platform>' where platform is linux or dos"
	@echo

linux: $(OBJS)
	gcc -o stax $(OBJS) `allegro-config --libs`

dos: $(OBJS)
	gcc -o stax.exe $(OBJS) -lalleg

$(OBJS): stax.h
.c.o:
	gcc -c $(FLAGS) $<

clean:
	@rm -f *~ *.o stax stax.exe