Commit | Line | Data |
---|---|---|
1 | CC=gcc | |
2 | CFLAGS=-O3 -Wall | |
3 | LIBS=-lncurses | |
4 | ||
5 | CFILES=globals.c view.c aliens.c ufo.c player.c nInvaders.c | |
6 | HFILES=globals.h view.h aliens.h ufo.h player.h nInvaders.h | |
7 | OFILES=globals.o view.o aliens.o ufo.o player.o nInvaders.o | |
8 | all: nInvaders | |
9 | ||
10 | nInvaders: $(OFILES) $(HFILES) | |
11 | $(CC) $(LDFLAGS) -o$@ $(OFILES) $(LIBS) | |
12 | ||
13 | .c.o: | |
14 | $(CC) -c -I. $(CFLAGS) $(OPTIONS) $< | |
15 | clean: | |
16 | rm -f nInvaders $(OFILES) |