aboutsummaryrefslogtreecommitdiff
path: root/AmpelJonas/Makefile
blob: 32709e2860cc4f3543bbcb8c70dd09ce8d2f9c45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CC      = /usr/bin/g++
CFLAGS  = -Wall -g
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

prog: $(OBJ)
	$(CC) $(CFLAGS) -o $(OUTPUT) $(OBJ) $(LDFLAGS)

%.o: %.cpp
	$(CC) $(CFLAGS) -c $<

.PHONY: clean

clean:
	rm -f $(OUTPUT) *.o