1 | # $Id: Makefile.kmk 225 2005-02-09 08:31:14Z bird $
|
---|
2 | export KBUILD_VCC70_DEPS = 1
|
---|
3 |
|
---|
4 | PROGRAMS = kmk
|
---|
5 |
|
---|
6 | kmk_TOOL = GCC3
|
---|
7 | kmk_TOOL.os2 = GCC3OMF
|
---|
8 | kmk_TOOL.win32 = VCC70
|
---|
9 |
|
---|
10 | kmk_CFLAGS.linux.release = -O3
|
---|
11 | kmk_CFLAGS.os2.relase = -O3
|
---|
12 | kmk_CFLAGS.win32 = -MT -W3
|
---|
13 |
|
---|
14 | kmk_DEPS = $(PATH_TARGET)/config.h
|
---|
15 |
|
---|
16 | kmk_INCS = $(PATH_TARGET) .
|
---|
17 | kmk_INCS.win32 = \
|
---|
18 | w32/include \
|
---|
19 | glob \
|
---|
20 | $(PATH_DEV)/x86.win32/vcc70/include \
|
---|
21 | $(PATH_DEV)/x86.win32/sdk200209/include
|
---|
22 |
|
---|
23 | kmk_DEFS = \
|
---|
24 | HAVE_CONFIG_H \
|
---|
25 | CONFIG_NO_DEFAULT_SUFFIXES \
|
---|
26 | CONFIG_NO_DEFAULT_PATTERN_RULES \
|
---|
27 | CONFIG_NO_DEFAULT_TERMINAL_RULES \
|
---|
28 | CONFIG_NO_DEFAULT_SUFFIX_RULES \
|
---|
29 | CONFIG_NO_DEFAULT_VARIABLES \
|
---|
30 | CONFIG_WITH_KMK_BUILTIN
|
---|
31 | kmk_DEFS.win32 = WINDOWS32 _CONSOLE WIN32
|
---|
32 | kmk_DEFS.win32.release = NDEBUG
|
---|
33 |
|
---|
34 | kmk_LDFLAGS.linux.release = -s
|
---|
35 | kmk_LDFLAGS.os2 = -Zhigh-mem -Zstack=1024
|
---|
36 | kmk_LDFLAGS.os2.release = -s
|
---|
37 | kmk_LDFLAGS.win32 = /SUBSYSTEM:console /INCREMENTAL:no /NOD
|
---|
38 |
|
---|
39 | kmk_LIBS.linux = rt
|
---|
40 | kmk_LIBS.win32 = \
|
---|
41 | $(PATH_DEV)/x86.win32/vcc70/lib/libcmt.lib \
|
---|
42 | $(PATH_DEV)/x86.win32/vcc70/lib/oldnames.lib \
|
---|
43 | $(PATH_DEV)/x86.win32/sdk200209/lib/Kernel32.Lib \
|
---|
44 | $(PATH_DEV)/x86.win32/sdk200209/lib/User32.Lib \
|
---|
45 | $(PATH_DEV)/x86.win32/sdk200209/lib/AdvAPI32.Lib
|
---|
46 |
|
---|
47 | kmk_SOURCES = \
|
---|
48 | main.c \
|
---|
49 | read.c \
|
---|
50 | hash.c \
|
---|
51 | variable.c \
|
---|
52 | ar.c \
|
---|
53 | arscan.c \
|
---|
54 | commands.c \
|
---|
55 | default.c \
|
---|
56 | dir.c \
|
---|
57 | expand.c \
|
---|
58 | file.c \
|
---|
59 | function.c \
|
---|
60 | implicit.c \
|
---|
61 | job.c \
|
---|
62 | misc.c \
|
---|
63 | remake.c \
|
---|
64 | rule.c \
|
---|
65 | signame.c \
|
---|
66 | version.c \
|
---|
67 | vpath.c \
|
---|
68 | remote-stub.c \
|
---|
69 | kmkbuiltin.c
|
---|
70 |
|
---|
71 | kmk_SOURCES.os2 = \
|
---|
72 | getopt.c \
|
---|
73 | getopt1.c \
|
---|
74 |
|
---|
75 | kmk_SOURCES.win32 = \
|
---|
76 | getopt.c \
|
---|
77 | getopt1.c \
|
---|
78 | getloadavg.c \
|
---|
79 | w32/subproc/misc.c \
|
---|
80 | w32/subproc/sub_proc.c \
|
---|
81 | w32/subproc/w32err.c \
|
---|
82 | glob/glob.c \
|
---|
83 | glob/fnmatch.c \
|
---|
84 | w32/compat/dirent.c \
|
---|
85 | w32/pathstuff.c
|
---|
86 |
|
---|
87 | #MAKE_DLLSHELL
|
---|
88 |
|
---|
89 |
|
---|
90 | DEPTH = ../..
|
---|
91 | include $(PATH_KBUILD)/rules.kmk
|
---|
92 |
|
---|
93 | $(PATH_TARGET)/config.h: config.h.$(BUILD_TARGET)
|
---|
94 | $(CP) $^ $@
|
---|
95 |
|
---|
96 | parallel: parallel_1 parallel_2 parallel_3 parallel_4 parallel_5
|
---|
97 | parallel_1 parallel_2 parallel_3 parallel_4 parallel_5:
|
---|
98 | echo $@_start ; sleep 1; echo $@_done
|
---|
99 |
|
---|
100 | test:
|
---|
101 | echo "1"
|
---|
102 | echo "2"
|
---|
103 | echo "3"
|
---|
104 | echo "4"
|
---|
105 |
|
---|