Fewo-Blacklist/Makefile

28 lines
401 B
Makefile
Raw Normal View History

2017-08-15 20:59:11 +02:00
TARGET=fewo-blacklist
LIBS=
2017-08-15 20:59:11 +02:00
CC=g++
CFLAGS=-march=native -O2 -g -Wall
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.cpp, %.o, $(wildcard *.cpp))
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) -Wall $(LIBS) -o $@
clean:
-rm -f *.o
-rm -f $(TARGET)
run:
./$(TARGET)
reset:
-echo > daten.txt
-echo 0 > counter.txt