Last active
June 23, 2022 20:40
-
-
Save Jammyjamjamman/3c6b3b9376bcb51862f37415a5216050 to your computer and use it in GitHub Desktop.
Dead simple makefile (in this case for building openssl bins).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CC = gcc # Optional. Will use system default if not given here e.g. gcc or clang. | |
CFLAGS = -g -Wall -fanalyzer $(shell pkg-config --cflags openssl) | |
LIBS=$(shell pkg-config --libs openssl) | |
LDFLAGS = $(LIBS) | |
bins = decrypt_file encrypt_file | |
all: $(bins) | |
clean: | |
@for file in $(bins); do \ | |
$(RM) $${file}; \ | |
$(RM) $${file}.o; \ | |
done; \ | |
$(RM) testdecrypt.txt; \ | |
$(RM) testout.crypt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment