-
Notifications
You must be signed in to change notification settings - Fork 117
/
Copy pathMakefile
69 lines (58 loc) · 1.47 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
61
62
63
64
65
66
67
68
69
# Makefile for the ELKS command set.
#
###############################################################################
#
# Include standard rules.
BASEDIR = .
include $(BASEDIR)/Make.defs
###############################################################################
#
# Subdirectories for clean / build / install
# All subdirectories to build & clean
# TODO: broken command compilations: byacc m4 xvi
# unused commands but working compilations: mtools nano prems
SUBDIRS = \
lib \
advent \
ash \
basic \
bc \
busyelks \
disk_utils \
elvis \
file_utils \
inet \
ktcp \
levee \
minix1 \
minix2 \
minix3 \
misc_utils \
nano-X \
sash \
screen \
cron \
sh_utils \
sys_utils \
tui \
test \
# EOL
###############################################################################
#
# Compile everything.
include $(BASEDIR)/Make.rules
all:
@if [ ! -e $(TOPDIR)/include/autoconf.h ]; \
then echo -e "\n*** ERROR: You must configure ELKS first ***\n" >&2; exit 1; fi
for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR all || exit 1; done
ifdef CONFIG_APP_CGATEXT)
$(MAKE) -C cgatext
endif
ifdef CONFIG_APP_ROMPRG
$(MAKE) -C romprg
endif
install:
$(MAKE) -f Make.install "CONFIG=$(TOPDIR)/.config"
clean:
for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR clean || exit 1; done
###############################################################################