summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-25 18:20:34 +0100
committerMattias Andrée <maandree@kth.se>2021-03-25 18:21:22 +0100
commitbb053447a1e19e3b14b9afe522ecc04057a79c27 (patch)
treee9044d93a4600968c4c9f3b5ce8b1444d349ff19 /Makefile
parentFirst commit (diff)
downloadpdatools-bb053447a1e19e3b14b9afe522ecc04057a79c27.tar.gz
pdatools-bb053447a1e19e3b14b9afe522ecc04057a79c27.tar.bz2
pdatools-bb053447a1e19e3b14b9afe522ecc04057a79c27.tar.xz
Add clock
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8aa59db..285576d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,12 @@ CONFIGFILE = config.mk
include $(CONFIGFILE)
HDR =\
- common.h
+ common.h\
+ large.h
BIN_ =\
backlight\
+ clock\
stopwatch
OBJ =\
@@ -28,6 +30,9 @@ $(BIN): $(@:.bin=.o) common.o
.o.bin:
$(CC) -o $@ $< common.o $(LDFLAGS)
+large.h: large.sh
+ ./large.sh > $@
+
install: $(BIN)
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
@@ -46,7 +51,7 @@ uninstall:
-cd -- "$(DESTDIR)$(MANPREFIX)/man1" && rm -f $(MAN1)
clean:
- -rm -rf -- *.o *.su *.bin
+ -rm -rf -- *.o *.su *.bin large.h
.SUFFIXES:
.SUFFIXES: .bin .o .c