... | ... |
@@ -9,6 +9,7 @@ else ifeq ($(shell uname),Darwin) |
9 | 9 |
MICROGLUT = MicroGlut.m |
10 | 10 |
endif |
11 | 11 |
|
12 |
+PROG = tsbk07 |
|
12 | 13 |
COMMON = \ |
13 | 14 |
common/GL_utilities.c \ |
14 | 15 |
common/LoadTGA.c \ |
... | ... |
@@ -35,9 +36,9 @@ LDLIBS += \ |
35 | 36 |
$(LDLIBS_$(OS)) |
36 | 37 |
|
37 | 38 |
# The below is equivalent to the GNU Make implicit rule for |
38 |
-# tsbk07: $(COMMON) |
|
39 |
-tsbk07: tsbk07.cpp $(COMMON) |
|
40 |
- g++ $(CXXFLAGS) $(CPPFLAGS) tsbk07.cpp $(COMMON) $(LDLIBS) -o tsbk07 |
|
39 |
+# $(PROG): $(COMMON) |
|
40 |
+$(PROG): $(PROG).cpp $(COMMON) |
|
41 |
+ g++ $(CXXFLAGS) $(CPPFLAGS) $(PROG).cpp $(COMMON) $(LDLIBS) -o $(PROG) |
|
41 | 42 |
|
42 | 43 |
clean: |
43 |
- rm tsbk07 |
|
44 |
+ rm $(PROG) |