Subversion Repositories NedoOS

Rev

Rev 922 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 922 Rev 930
Line 1... Line -...
1
# Supported environment:
-
 
2
#   GNU/Linux
-
 
3
#   Windows NT
-
 
4
 
-
 
5
include common.mk
-
 
6
 
-
 
7
ifeq ($(OS),Windows_NT)
-
 
8
 NAME		:= bin/convega.exe bin/nedopad.exe bin/nedores.exe bin/nedotrd.exe
1
NAME		= nedopad.bin nedores.bin nedotrd.bin
9
else
2
OBJECTS		=
10
 NAME		:= bin/convega.bin bin/nedopad.bin bin/nedores.bin bin/nedotrd.bin
3
SOURCES		= nedopad/main.c nedores/main.c nedotrd/main.c
11
endif
-
 
12
 
-
 
13
.PHONY: all install clean
4
SJASMPLUS	= ../../tools/sjasmplus
14
 
-
 
15
all: $(NAME)
-
 
16
 
-
 
17
# convega
5
CC		= gcc
18
 
-
 
19
ifeq ($(OS),Windows_NT)
-
 
20
convega/convega.exe: convega
-
 
21
else
-
 
22
convega/convega: convega
-
 
23
endif
-
 
24
	$(MAKE) -w -C $<
6
CFLAGS 		= -m32
25
 
7
 
26
ifeq ($(OS),Windows_NT)
8
all: ${NAME} ${SOURCES}
27
bin/convega.exe: convega/convega.exe
-
 
28
else
-
 
29
bin/convega.bin: convega/convega
-
 
30
endif
-
 
31
	$(CP) $< $@
-
 
32
 
-
 
33
# nedopad
-
 
34
 
9
 
35
ifeq ($(OS),Windows_NT)
-
 
36
nedopad/nedopad.exe: nedopad
-
 
37
else
-
 
38
nedopad/nedopad: nedopad
10
nedopad.bin: nedopad/main.c
39
endif
-
 
40
	$(MAKE) -w -C $<
-
 
41
 
-
 
42
ifeq ($(OS),Windows_NT)
-
 
43
bin/nedopad.exe: nedopad/nedopad.exe
11
	patch -N -p6 -i nedopad.diff; echo
44
else
-
 
45
bin/nedopad.bin: nedopad/nedopad
12
	${CC} ${CFLAGS} nedopad/main.c -o nedopad.bin
46
endif
-
 
47
	$(CP) $< $@
-
 
48
 
-
 
49
# nedores
-
 
50
 
13
 
51
ifeq ($(OS),Windows_NT)
-
 
52
nedores/nedores.exe: nedores
-
 
53
else
-
 
54
nedores/nedores: nedores
14
nedores.bin: nedores/main.c
55
endif
-
 
56
	$(MAKE) -w -C $<
-
 
57
 
-
 
58
ifeq ($(OS),Windows_NT)
-
 
59
bin/nedores.exe: nedores/nedores.exe
15
	patch -N -p6 -i nedores.diff; echo
60
else
-
 
61
bin/nedores.bin: nedores/nedores
16
	${CC} ${CFLAGS} nedores/main.c -o nedores.bin
62
endif
-
 
63
	$(CP) $< $@
-
 
64
 
17
 
65
# nedotrd
-
 
66
 
-
 
67
ifeq ($(OS),Windows_NT)
-
 
68
nedotrd/nedotrd.exe: nedotrd
-
 
69
else
-
 
70
nedotrd/nedotrd: nedotrd
18
nedotrd.bin: nedotrd/main.c
71
endif
-
 
72
	$(MAKE) -w -C $<
-
 
73
 
-
 
74
ifeq ($(OS),Windows_NT)
-
 
75
bin/nedotrd.exe: nedotrd/nedotrd.exe
19
	patch -N -p6 -i nedotrd.diff; echo
76
else
-
 
77
bin/nedotrd.bin: nedotrd/nedotrd
20
	${CC} ${CFLAGS} nedotrd/main.c -o nedotrd.bin
78
endif
-
 
79
	$(CP) $< $@
-
 
80
 
-
 
81
install: all
-
 
82
 
21
 
83
clean:
22
clean: 
84
	$(MAKE) -w -C convega clean
-
 
85
	$(MAKE) -w -C nedopad clean
-
 
86
	$(MAKE) -w -C nedores clean
-
 
87
	$(MAKE) -w -C nedotrd clean
23
	rm -f ${NAME} ${OBJECTS}
-
 
24
 
88
	$(RM) $(NAME)
25
install: all