home · contact · privacy
Declare "clean" a phony target.
[plomrogue] / Makefile
1 CC=cc
2 CFLAGS=-Wall -g
3 TARGET=roguelike
4 OBJECTS=windows.o draw_wins.o keybindings.o readwrite.o roguelike.o
5
6 roguelike: $(OBJECTS)
7         $(CC) $(CFLAGS) -o roguelike $(OBJECTS) -lncurses
8
9 %.o: %.c
10         $(CC) $(CFLAGS) -c $< -o $@
11
12 .PHONY: clean
13 clean:
14         rm $(OBJECTS); rm roguelike