You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
401 B
28 lines
401 B
TARGET=fewo-blacklist
|
|
LIBS=
|
|
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
|