From 1c7d481d0104add72933c560d957a422e8636d84 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 22:54:11 +0200 Subject: Initial commit. --- makefile.vc | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 makefile.vc (limited to 'makefile.vc') diff --git a/makefile.vc b/makefile.vc new file mode 100644 index 0000000..e8baf3d --- /dev/null +++ b/makefile.vc @@ -0,0 +1,46 @@ +# +# Simple MS VC++ Makefile +# +# To build: +# C:\src\compface> nmake /f makefile.vc all +# + +NAME = compface +UNNAME = uncompface +LIBNAME = lib$(NAME) +STATICLIB = $(LIBNAME).lib +SHAREDLIB = $(LIBNAME).dll +NAMEEXE = $(NAME).exe +UNNAMEEXE = $(UNNAME).exe + +CC = cl +INCL = -I. +LIBS = +CFLAGS = -nologo -W3 -O2 -MD $(INCL) -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRERROR=1 -DHAVE_ERRNO_H=1 -DHAVE_CONFIG_H=1 -DHAVE_IO_H=1 +LDFLAGS = -nologo -release + + +OBJ = \ + arith.obj \ + file.obj \ + compress.obj \ + gen.obj \ + uncompface.obj + +all: $(STATICLIB) $(SHAREDLIB) $(NAMEEXE) $(UNNAMEEXE) + +$(STATICLIB): $(OBJ) + lib -out:$(STATICLIB) $(OBJ) + +$(SHAREDLIB): $(OBJ) + link $(LDFLAGS) -def:$(LIBNAME).def -dll -implib:$(LIBNAME)_i.lib \ + -out:$@ $(OBJ) $(LIBS) + +$(NAMEEXE) : cmain.obj compface.obj $(STATICLIB) + link $(LDFLAGS) -out:$@ cmain.obj compface.obj $(STATICLIB) + +$(UNNAMEEXE) : uncmain.obj $(STATICLIB) + link $(LDFLAGS) -out:$@ uncmain.obj $(STATICLIB) + +clean: + del *.obj *.lib $(SHAREDLIB) -- cgit v1.2.3-70-g09d2