summaryrefslogtreecommitdiff
path: root/AmpelJonas/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'AmpelJonas/Makefile')
-rw-r--r--AmpelJonas/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/AmpelJonas/Makefile b/AmpelJonas/Makefile
index a581b30..32709e2 100644
--- a/AmpelJonas/Makefile
+++ b/AmpelJonas/Makefile
@@ -1,11 +1,17 @@
CC = /usr/bin/g++
CFLAGS = -Wall -g
-LDFLAGS = -lm -lpthread
+LDFLAGS = -lm -lpthread -lcurses
+OUTPUT = Kreuzung
-OBJ = main.o cCar.o cCrossroad.o cObject.o cObjectHandler.o cPeasant.o cPeasantTrafficLight.o cRender.o cTrafficLight.o
+OBJ = main.o cCar.o cCrossroad.o cObject.o cObjectHandler.o cPeasant.o cPeasantTrafficLight.o cRender.o cTrafficLight.o
prog: $(OBJ)
- $(CC) $(CFLAGS) -o prog $(OBJ) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $(OUTPUT) $(OBJ) $(LDFLAGS)
%.o: %.cpp
$(CC) $(CFLAGS) -c $<
+
+.PHONY: clean
+
+clean:
+ rm -f $(OUTPUT) *.o