diff options
author | Seppia <seppia@seppio.fish> | 2018-07-06 01:27:52 +0200 |
---|---|---|
committer | Seppia <seppia@seppio.fish> | 2018-07-06 01:27:52 +0200 |
commit | 6d532fd3993f2c86a39071636bf330135541f80f (patch) | |
tree | e30cbb077a8505d5359b0c6a8d3dcc57a9f90913 /Makefile | |
parent | bf07e0d2f69d7e801515ae33393f91a7867604b4 (diff) | |
download | onetimebluh-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-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |