Skip to content

Instantly share code, notes, and snippets.

@Jammyjamjamman
Last active June 23, 2022 20:40
Show Gist options
  • Save Jammyjamjamman/3c6b3b9376bcb51862f37415a5216050 to your computer and use it in GitHub Desktop.
Save Jammyjamjamman/3c6b3b9376bcb51862f37415a5216050 to your computer and use it in GitHub Desktop.
Dead simple makefile (in this case for building openssl bins).
# 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