diff options
author | Deposite Pirate | 2018-09-16 22:54:11 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-16 22:54:11 +0200 |
commit | 1c7d481d0104add72933c560d957a422e8636d84 (patch) | |
tree | 2ef71132559dd018c453f4617d92ce69394e42f0 /makefile.vc |
Initial commit.
Diffstat (limited to 'makefile.vc')
-rw-r--r-- | makefile.vc | 46 |
1 files changed, 46 insertions, 0 deletions
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)
|