276
|
1 #
|
|
2 # XPM Makefile for Microsoft NMAKE without X libraries
|
|
3 #
|
|
4
|
|
5 !if !defined(DEBUG_XEMACS)
|
|
6 DEBUG_XEMACS=0
|
|
7 !endif
|
|
8
|
|
9 !if $(DEBUG_XEMACS)
|
|
10 OPT=-Od -Zi
|
|
11 !else
|
|
12 OPT=-O2 -G5 -Zi
|
|
13 !endif
|
|
14
|
|
15 WARN_CPP_FLAGS = -W3
|
|
16
|
|
17 CC=cl
|
|
18 CFLAGS=-nologo -DFOR_MSW $(WARN_CPP_FLAGS) $(OPT) $(INCLUDES) -Fo$@ -c
|
|
19
|
|
20 OBJS= data.obj create.obj misc.obj rgb.obj scan.obj parse.obj hashtab.obj \
|
|
21 WrFFrI.obj RdFToI.obj CrIFrDat.obj CrDatFrI.obj \
|
|
22 CrIFrBuf.obj CrBufFrI.obj \
|
|
23 RdFToDat.obj WrFFrDat.obj \
|
|
24 Attrib.obj Image.obj Info.obj RdFToBuf.obj WrFFrBuf.obj \
|
|
25 simx.obj
|
|
26
|
|
27 # nmake rule
|
|
28
|
|
29 .SUFFIXES:
|
|
30 .SUFFIXES: .c
|
|
31
|
|
32 .c.obj:
|
|
33 $(CC) $(CFLAGS) $< -Fo$@
|
|
34
|
|
35
|
|
36 # targets
|
|
37
|
|
38 all: ..\X11\xpm.h Xpm.lib
|
|
39
|
|
40 ..\X11\xpm.h: ..\X11\NUL xpm.h
|
|
41 copy xpm.h ..\X11
|
|
42
|
|
43 ..\X11\NUL:
|
|
44 mkdir ..\X11
|
|
45
|
|
46 Xpm.lib: $(OBJS)
|
|
47 link.exe -lib -nologo -out:$@ $(OBJS)
|