update Makefile

master
Dominic Reich 4 years ago
parent 33fd748ae4
commit 4c92fdd561
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -4,6 +4,7 @@
# Last modified: 18.08.2017 # Last modified: 18.08.2017
TARGET=fewo-blacklist TARGET=fewo-blacklist
TARGET_STATIC=fewo-blacklist-static
LIBS= LIBS=
CC=g++ CC=g++
CFLAGS=-march=native -O2 -g -Wall CFLAGS=-march=native -O2 -g -Wall
@ -19,10 +20,23 @@ HEADERS = $(wildcard *.h)
$(TARGET): $(OBJECTS) $(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) -Wall $(LIBS) -o $@ $(CC) $(OBJECTS) -Wall $(LIBS) -o $@
#strip $@
$(TARGET_STATIC): $(OBJECTS)
$(CC) $(OBJECTS) -Wall $(LIBS) --static -o $@
#strip $@
clean: clean:
-rm -f *.o -rm -f *.o
-rm -f $(TARGET) -rm -f $(TARGET)
-rm -f $(TARGET_STATIC)
mrproper:
-rm -f *.o
-rm -f $(TARGET)
-rm -f $(TARGET_STATIC)
-rm -f daten.txt
-rm -f counter.txt
run: run:
./$(TARGET) ./$(TARGET)

Loading…
Cancel
Save