blob: 93dca8584af5677a7da4ab566d39aa4963ddb924 (
plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# $Xorg: Makefile.ini,v 1.3 2000/08/17 19:41:50 cpqbld Exp $
#
# WARNING WARNING WARNING WARNING WARNING WARNING WARNING
#
# This is NOT an automatically generated Makefile! It is hand-crafted as a
# bootstrap, may need editing for your system. The BOOTSTRAPCFLAGS variable
# may be given at the top of the build tree for systems that do not define
# any machine-specific preprocessor symbols.
#
# $XFree86: xc/config/imake/Makefile.ini,v 3.9 2000/10/26 17:57:45 dawes Exp $
CROSSCOMPILEDIR =
CROSSCOMPILEFLAGS = -DCROSSCOMPILEDIR=\"$(CROSSCOMPILEDIR)\"
BOOTSTRAPCFLAGS =
CC = cc
PREPROCESS_CMD = cc -E
CDEBUGFLAGS = -O
INCLUDES = -I../../include -I../../imports/x11/include/X11
CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) $(INCLUDES) -DMONOLITH
IMAKEMDEP_CROSSCOMPILE = -DCROSSCOMPILE_CPP
SHELL = /bin/sh
RM = rm -f
MV = mv
RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
tags TAGS make.log
NPROC = 1
imake::
@echo "making imake with BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS) and CROSSCOMPILEFLAGS=$(CROSSCOMPILEFLAGS) in config/imake"
imake:: imake.o
$(CC) -o imake $(CFLAGS) imake.o
imake.o: ccimake imake.c imakemdep_cpp.h
$(CC) -c $(CFLAGS) `./ccimake` imake.c
ccimake: ccimake.c
$(CC) -o ccimake $(CROSSCOMPILEFLAGS) $(CFLAGS) ccimake.c
imakemdep_cpp.h: ccimake imakemdep.h
if [ -n "$(CROSSCOMPILEDIR)" ] ; then \
$(CROSSCOMPILEDIR)/$(PREPROCESS_CMD) `./ccimake` \
$(IMAKEMDEP_CROSSCOMPILE) imakemdep.h > imakemdep_cpp.h; \
else touch imakemdep_cpp.h; fi
# a derived object erroneously would get shared across platforms by clearmake
.NO_CONFIG_REC: ccimake
bootstrap:
-@if [ -d bootstrap ]; then exit 0; else set -x; mkdir bootstrap; fi
$(MV) *.o bootstrap
@if [ -f imake.exe ]; then set -x; $(MV) imake.exe bootstrap; \
elif [ -f imake ]; then set -x; $(MV) imake bootstrap; else exit 0; fi
relink:
$(RM) imake
$(MAKE) $(MFLAGS) imake
clean:
$(RM) ccimake imake.o imake
$(RM_CMD) \#*
$(RM) -r Makefile.proto Makefile Makefile.dep bootstrap
$(RM) imakemdep_cpp.h
depend:
imake.exe::
@echo making imake with BOOTSTRAPCFLAGS=-DWIN32
imake.exe:: imake.obj
cl -nologo imake.obj libc.lib kernel32.lib
imake.obj: imake.c
cl -nologo -W2 -D__STDC__ -c -DWIN32 $(CFLAGS) imake.c
clean.Win32:
if exist imake.exe del imake.exe
if exist imake.obj del imake.obj
clean.os2:
imakesvc 4 imake imake.exe imake.o /imake.exe
imake.os2: imake.c
$(CC) -DBSD43 $(CFLAGS) -o imake.exe imake.c
copy imake.exe \\
|