diff options
| author | jakob <jakob@memeware.net> | 2017-03-04 19:00:34 -0500 |
|---|---|---|
| committer | jakob <jakob@memeware.net> | 2017-03-04 19:00:34 -0500 |
| commit | 33a163c7dae687fba9691c184fe719b0c833acc2 (patch) | |
| tree | 159b976274864a472bd1d798d206a875d9ff5f95 | |
| parent | c6e28ae622cfd86f5b0ca796d27953ac8ecd37b1 (diff) | |
Added some OpenBSD-specific things to the Makefile
| -rw-r--r-- | Makefile | 9 | ||||
| -rw-r--r-- | src/main.c | 2 |
2 files changed, 9 insertions, 2 deletions
@@ -5,8 +5,15 @@ endif CC := gcc LD := gcc -CFLAGS = -Wall -Wextra -Os -g +CFLAGS = -Wall -Wextra -Os -g -std=c99 -pedantic +ifeq ($(shell uname -s),OpenBSD) +CFLAGS += -I/usr/local/include +endif + LDFLAGS = -lz +ifeq ($(shell uname -s),OpenBSD) +LDFLAGS += -liconv -L/usr/local/lib +endif SRCDIR = src TSTDIR = test @@ -60,7 +60,7 @@ static void print_help(void) { " -v, --version\tDisplay the currently installed version and " "exit.\n\n" " -e, --extract\tExtract the contents of the archive. This is " - "the default.\n" + "the default\n\t\t\taction if no mode argument is provided.\n" " -l, --list\t\tList the contents of the archive.\n\n" " -o, --output\t\tPath to extract files to.\n" " -g, --game\t\tGame the archive is from. Required for file " |