-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (42 loc) · 1.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Basic Makefile for Embecosm utilities.
# Copyright (C) 2016 Embecosm Limited.
# Contributor Jeremy Bennett <[email protected]>
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>. */
INSTALLDIR ?= $(HOME)/bin
CFLAGS = -g3 -O2
C_PROGS = rcmd-dump
SHELL_SCRIPTS = camera-off.sh \
camera-on.sh \
cfit.sh \
compress-pdf.sh \
format-spec.sh \
reverse-csv.sh \
syslog-all.sh \
syslog-graph.sh \
track-gnu-tests.sh \
update-all.sh \
updown-graph.sh
SNOBOL4_PROGS = syslog-all.sno
# Build everything
.PHONY: all
all: $(C_PROGS) $(SHELL_SCRIPTS)
# Install everything
.PHONY: install
install: all
cp $(C_PROGS) $(INSTALLDIR)
cp $(SHELL_SCRIPTS) $(INSTALLDIR)
cp $(SNOBOL4_PROGS) $(INSTALLDIR)
# Clean up
.PHONY: clean
$(RM) -f $(C_PROGS)
rcmd-dump: rcmd-dump.c
$(CC) $(CFLAGS) -o $@ $<