diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:31:21 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:31:21 +0200 |
commit | e06f4914b08d5d7c58bc201f731feb8d12145785 (patch) | |
tree | c7457af491a2645cf32aaefe63caf8a012482488 | |
parent | Exit when q is pressed (diff) | |
download | mongoclock-e06f4914b08d5d7c58bc201f731feb8d12145785.tar.gz mongoclock-e06f4914b08d5d7c58bc201f731feb8d12145785.tar.bz2 mongoclock-e06f4914b08d5d7c58bc201f731feb8d12145785.tar.xz |
Improve makefile + m whitespace fix3.1.5
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | config.mk | 6 | ||||
-rw-r--r-- | mongoclock.c | 1 |
3 files changed, 7 insertions, 6 deletions
@@ -8,6 +8,7 @@ DIGITS =\ mongo_5.h mongo_6.h mongo_7.h mongo_8.h mongo_9.h \ mongo_c.h + all: mongoclock mongoclock: mongoclock.o @@ -51,18 +52,15 @@ mongo_c.h: digit.sh install: mongoclock mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" - mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/mongoclock" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1" cp -- mongoclock "$(DESTDIR)$(PREFIX)/bin/" - cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/mongoclock/" cp -- mongoclock.1 "$(DESTDIR)$(MANPREFIX)/man1/" uninstall: -rm -- "$(DESTDIR)$(PREFIX)/bin/mongoclock" -rm -- "$(DESTDIR)$(MANPREFIX)/man1/mongoclock.1" - -rm -r -- "$(DESTDIR)$(PREFIX)/share/licenses/mongoclock" clean: - -rm -f -- *.o mongoclock mongo_*.h + -rm -f -- *.o *.su mongoclock mongo_*.h .PHONY: all install uninstall clean @@ -1,6 +1,8 @@ -PREFIX = /usr/local +PREFIX = /usr MANPREFIX = $(PREFIX)/share/man +CC = cc + CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -DUSE_ADJTIMEX -CFLAGS = -std=c99 -Wall -Wextra -O2 +CFLAGS = -std=c99 -Wall -O2 LDFLAGS = -s diff --git a/mongoclock.c b/mongoclock.c index 6e8b6a0..6218d5f 100644 --- a/mongoclock.c +++ b/mongoclock.c @@ -33,6 +33,7 @@ #include "mongo_9.h" #include "mongo_c.h" + static const char **mongo_ds[] = { mongo_0, mongo_1, mongo_2, mongo_3, mongo_4, mongo_5, mongo_6, mongo_7, mongo_8, mongo_9 |