diff options
author | Ian C <ianc@noddybox.co.uk> | 2018-12-21 11:27:26 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2018-12-21 11:27:26 +0000 |
commit | 1169992d50ce930143efe2851d02e7dfa0304e29 (patch) | |
tree | b7c302c559b65a05f0b552244e57b2a4aed6cff2 /Makefile | |
parent | 859dc1c2044140f7bae42705940e44b4c94bd07e (diff) |
Split code up into separate objects.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -24,8 +24,16 @@ # LIBS=-lcurses -csol: csol.c - $(CC) -g -o csol csol.c $(LIBS) +OBJS=csol.o deck.o klondike.o pile.o util.o + +csol: $(OBJS) + $(CC) -g -o csol $(OBJS) $(LIBS) + +csol.o: csol.c deck.h pile.h util.h klondike.h +deck.o: deck.c deck.h +klondike.o: klondike.c deck.h pile.h util.h +pile.o: pile.c pile.h deck.h util.h +util.o: util.c util.h deck.h clean: - -rm -f csol csol.exe core + -rm -f csol csol.exe core $(OBJS) |