diff nt/xpm.mak @ 276:6330739388db r21-0b36

Import from CVS: tag r21-0b36
author cvs
date Mon, 13 Aug 2007 10:30:37 +0200
parents
children 74fd4e045ea6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nt/xpm.mak	Mon Aug 13 10:30:37 2007 +0200
@@ -0,0 +1,47 @@
+#
+# XPM Makefile for Microsoft NMAKE without X libraries
+#
+
+!if !defined(DEBUG_XEMACS)
+DEBUG_XEMACS=0
+!endif
+
+!if $(DEBUG_XEMACS)
+OPT=-Od -Zi
+!else
+OPT=-O2 -G5 -Zi
+!endif
+
+WARN_CPP_FLAGS = -W3
+
+CC=cl
+CFLAGS=-nologo -DFOR_MSW $(WARN_CPP_FLAGS) $(OPT) $(INCLUDES) -Fo$@ -c
+
+OBJS= data.obj create.obj misc.obj rgb.obj scan.obj parse.obj hashtab.obj \
+      WrFFrI.obj RdFToI.obj CrIFrDat.obj CrDatFrI.obj \
+      CrIFrBuf.obj CrBufFrI.obj \
+      RdFToDat.obj WrFFrDat.obj \
+      Attrib.obj Image.obj Info.obj RdFToBuf.obj WrFFrBuf.obj \
+      simx.obj
+
+# nmake rule
+
+.SUFFIXES:
+.SUFFIXES:	.c
+
+.c.obj:
+	$(CC) $(CFLAGS) $< -Fo$@
+
+
+# targets
+
+all: ..\X11\xpm.h Xpm.lib
+
+..\X11\xpm.h: ..\X11\NUL xpm.h
+	copy xpm.h ..\X11
+
+..\X11\NUL:
+	mkdir ..\X11
+
+Xpm.lib: $(OBJS)
+	link.exe -lib -nologo -out:$@ $(OBJS)