Add missing includes, GCC 6.3 errored out
[aclock.git] / Makefile
1 #
2 # Makefile
3 #
4
5 DEFAULT_ACLOCK ?= aclock-curses
6
7 SUBDIRS = 
8
9 aclock: $(DEFAULT_ACLOCK)
10         rm -f aclock
11         ln -s $(DEFAULT_ACLOCK) aclock
12
13 all: aclock-aalib aclock-curses aclock-termcap aclock
14
15 aclock-aalib:
16         gcc -O2 aclock-unix-aalib.c -o aclock-aalib -laa -lm
17
18 aclock-curses:
19         cc aclock-unix-curses.c -o aclock-curses -lcurses -lm
20
21 aclock-termcap:
22         cc aclock-unix-termcap.c -o aclock-termcap -ltermcap -lm
23
24 install-local: $(DEFAULT_ACLOCK)
25         install -d -o $(USER) -g $(GROUP) -m 755 \
26          $(DESTDIR)$(PREFIX)/bin
27         install -p -o $(USER) -g $(GROUP) -m 755 $(DEFAULT_ACLOCK) \
28          $(DESTDIR)$(PREFIX)/bin/aclock
29
30 clean-local:
31         rm -f aclock aclock-aalib aclock-curses aclock-termcap
32
33 include ./Makefile.ax