forked from SteveShaw/dconsole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnmakefile
55 lines (42 loc) · 869 Bytes
/
nmakefile
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
root = .
!include $(root)\build\config.nmake
!include $(root)\build\c\rules.nmake
!include $(root)\build\cxx\rules.nmake
EXTRA_CPPFLAGS = -Iinclude/
#########################################################################
src = \
src/base_command.cpp \
src/cmd_test.cpp \
src/command.cpp \
src/console.cpp \
src/graphic_console.cpp \
src/common.cpp \
#
#
obj = $(src:.cpp=.obj)
obj = $(obj:.c=.obj)
# Build.
#
libdconsole.a: $(obj)
$(AR) $(ARFLAGS) $@ $**
!if "$(RANLIB)" != ""
$(RANLIB) $@
!endif
$(obj): config.h
config.h: $(root)\config\config.nmake
echo "generating config.h"
# Generated.
#
gen:
# Test.
#
test: libdconsole.a
# Clean.
#
# Nmake that comes with eVC++ 4 cannot handle del $(obj)
# because the resulting line is too long.
#
cleanobj:
-del dconsole.a
-del *.obj
clean: cleanobj