home · contact · privacy
Made Makefile more maintainable.
[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 clean:
13         rm $(OBJECTS); rm roguelike