diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:50:44 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:50:44 +0200 |
commit | 2d54f1473d8c1c9bd7063ad23488b31ea74dd424 (patch) | |
tree | bcc21e2bcaff5ef394d9a53e5e1681bfe8775b22 | |
parent | Fix makefile (diff) | |
download | vtchs-2d54f1473d8c1c9bd7063ad23488b31ea74dd424.tar.gz vtchs-2d54f1473d8c1c9bd7063ad23488b31ea74dd424.tar.bz2 vtchs-2d54f1473d8c1c9bd7063ad23488b31ea74dd424.tar.xz |
Improve makefile1.1.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | config.mk | 6 |
2 files changed, 4 insertions, 5 deletions
@@ -14,15 +14,12 @@ vtchs: vtchs.o install: vtchs mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1" - mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/vtchs" cp -- vtchs "$(DESTDIR)$(PREFIX)/bin/" cp -- vtchs.1 "$(DESTDIR)$(MANPREFIX)/man1/" - cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/vtchs/" uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/bin/vtchs" -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/vtchs.1" - -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/vtchs" clean: -rm -f -- vtchs *.o @@ -1,6 +1,8 @@ -PREFIX = /usr/local +PREFIX = /usr MANPREFIX = $(PREFIX)/share/man -CFLAGS = -std=c99 -Wall -Wextra -O2 +CC = cc + CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 +CFLAGS = -std=c99 -Wall -O2 LDFLAGS = -s |