blob: e8baf3d083b40535c7f8d57dc5b455b11f7d9390 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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)
|