summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSeppia <seppia@seppio.fish>2018-07-06 01:27:52 +0200
committerSeppia <seppia@seppio.fish>2018-07-06 01:27:52 +0200
commit6d532fd3993f2c86a39071636bf330135541f80f (patch)
treee30cbb077a8505d5359b0c6a8d3dcc57a9f90913 /Makefile
parentbf07e0d2f69d7e801515ae33393f91a7867604b4 (diff)
downloadonetimebluh-6d532fd3993f2c86a39071636bf330135541f80f.tar.gz
onetimebluh-6d532fd3993f2c86a39071636bf330135541f80f.tar.bz2
onetimebluh-6d532fd3993f2c86a39071636bf330135541f80f.zip
Moved new functions to separate header and source
Moved new core functions to separate source file and created new header file. Adjusted Makefile and onetimebluh.c accordingly.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 16bfc92..bdc6a7d 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,15 @@ CFLAGS = -march=native -Wall -Wpedantic -lcrypto
SOURCE = onetimebluh
TARGET = otbluh
PREFIX = /usr
+LIBRARY = libluh
all: $(SOURCE)
$(SOURCE): src/$(SOURCE).c
mkdir build
- $(CC) $(CFLAGS) -o build/$(TARGET) src/$(SOURCE).c -v
+ $(CC) $(CFLAGS) -c -o build/$(LIBRARY).o src/$(LIBRARY).c -v
+ $(CC) $(CFLAGS) -c -o build/$(SOURCE).o src/$(SOURCE).c -v
+ $(CC) $(CFLAGS) -o build/$(TARGET) build/$(SOURCE).o build/$(LIBRARY).o -v
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin