update Makefile
This commit is contained in:
parent
33fd748ae4
commit
4c92fdd561
1 changed files with 14 additions and 0 deletions
14
Makefile
14
Makefile
|
@ -4,6 +4,7 @@
|
|||
# Last modified: 18.08.2017
|
||||
|
||||
TARGET=fewo-blacklist
|
||||
TARGET_STATIC=fewo-blacklist-static
|
||||
LIBS=
|
||||
CC=g++
|
||||
CFLAGS=-march=native -O2 -g -Wall
|
||||
|
@ -19,10 +20,23 @@ HEADERS = $(wildcard *.h)
|
|||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CC) $(OBJECTS) -Wall $(LIBS) -o $@
|
||||
#strip $@
|
||||
|
||||
$(TARGET_STATIC): $(OBJECTS)
|
||||
$(CC) $(OBJECTS) -Wall $(LIBS) --static -o $@
|
||||
#strip $@
|
||||
|
||||
clean:
|
||||
-rm -f *.o
|
||||
-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:
|
||||
./$(TARGET)
|
||||
|
|
Loading…
Reference in a new issue