summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBenedict <benedict@0xb8000.de>2016-03-15 20:04:19 +0100
committerBenedict <benedict@0xb8000.de>2017-02-21 13:00:24 +0100
commit236d0ee8acedc2535a4a973acd99a708b530a053 (patch)
treea6698a61919cc47d5f922f948768687129ccad53 /Makefile
parent14e3b0e4f801f6fdbd6be941a2022e4e665d88eb (diff)
addded cflag variabel in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cb8173b..74ffb3c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,25 @@
LIB=lib.c
CC=gcc
+CFLAGS := -g $(CFLAGS)
all: task1 task2 task4 task5 task6
task1:
- $(CC) task1.c $(LIB) -o task1
+ $(CC) $(CFLAGS) task1.c $(LIB) -o task1
task2:
- $(CC) task2.c $(LIB) -o task2
+ $(CC) $(CFLAGS) task2.c $(LIB) -o task2
task4:
- $(CC) task4.c $(LIB) -o task4
+ $(CC) $(CFLAGS) task4.c $(LIB) -o task4
task5:
- $(CC) task5.c $(LIB) -o task5
+ $(CC) $(CFLAGS) task5.c $(LIB) -o task5
task6:
- $(CC) task6.c $(LIB) -o task6
+ $(CC) $(CFLAGS) task6.c $(LIB) -o task6
+task7:
+ $(CC) $(CFLAGS) task7.c `pkg-config --cflags --libs libcrypto` -o task7
clean:
rm task1 task2 task4 task5 task6