#
#

#
# START OF CONFIGURATION SECTION.
#
# You may need to customize this section.
#

# Where do you want to install the software?
PREFIX=c:\p\lib-stt

# Which programs to use for compiling and linking?
CC=CL
LD=LINK

#
# Where is Visual C?
# Directories lib, include and bin must be beyound this.
#
VC=C:\Programme\DevStudio\Vc

#
# END OF CONFIGURATION SECTION.
#
# No changes should be necessary below this line.
#

all:	lib

install:	all
	-mkdir $(PREFIX)
	-mkdir $(PREFIX)\include
	-mkdir $(PREFIX)\lib
	-mkdir $(PREFIX)\bin
	xcopy *.h   $(PREFIX)\include\
	xcopy ..\*.h $(PREFIX)\include\
	xcopy *.lib $(PREFIX)\lib\

clean:
	-del *.obj
	-del *.lib
	-del *.exe
	-del *.dll

lib:	netpbm.lib

OBJS=	libpm.obj fileio.obj bitio.obj colorname.obj \
	libpbm1.obj libpbm2.obj libpbm3.obj libpbm5.obj \
	libpgm1.obj libpgm2.obj \
	libppm1.obj libppm2.obj libppmcmap.obj libppmcolor.obj libppmd.obj\
	libppmfloyd.obj \
	libpnm1.obj libpnm2.obj libpnm3.obj \
	libpam.obj libpammap.obj libsystem.obj nstring.obj shhopt.obj

netpbm.lib:	$(OBJS)
	lib /nologo /out:netpbm.lib $(OBJS)

COBJFLAGS= /nologo /MT /W3 /GX /O2 /D "WIN32" /D "_WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /FD /I. /I.. /I"$(VC)\Include" $(SCD) $(DEFS) /QI0f /QIfdiv

.c.obj:
	$(CC) $(COBJFLAGS) /c $*.c

