Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (50 sloc) 1.345 kb
cd8e7ab Alexey Zakhlestin makefile for microsoft nmake. by Stas Malyshev
authored
1 # Makefile - syck
2
3 CL=cl.exe
4 LINK=link.exe
5 NMAKE=nmake.exe
6 MAKE_LIB=lib.exe
7 BISON=bison.exe
8 BUILD_DIR=build
9
10 CFLAGS=/Ox /Ob2 /Oi /Ot /Oy /GL /D "WIN32" /D "NDEBUG" /D "_LIB" /D "HAVE_CONFIG_H" /D "_CRT_SECURE_NO_WARNINGS" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Gy /Fo"$(BUILD_DIR)\\" /Fd"$(BUILD_DIR)\syck.pdb" /W3 /nologo /c /Zi /TC
11 LDFLAGS=/OUT:"$(BUILD_DIR)\syck.lib" /NOLOGO /LTCG
12
13 TARGET=$(BUILD_DIR)\syck.lib
14
15 all: $(BUILD_DIR) $(TARGET)
16
17 SOURCE_FILES= \
18 lib\bytecode.c \
19 lib\emitter.c \
20 lib\gram.y \
21 lib\handler.c \
22 lib\implicit.c \
23 lib\node.c \
24 lib\syck.c \
25 lib\syck_st.c \
26 lib\token.c \
27 lib\yaml2byte.c
28
29 HEADER_FILES= \
30 lib\syck.h \
31 lib\syck_st.h \
32 lib\sycklex.h \
33 lib\yamlbyte.h
34
35 SRCS=$(SOURCE_FILES) $(HEADER_FILES)
36
37 OBJS=\
38 $(BUILD_DIR)\bytecode.obj \
39 $(BUILD_DIR)\emitter.obj \
40 $(BUILD_DIR)\gram.tab.obj \
41 $(BUILD_DIR)\handler.obj \
42 $(BUILD_DIR)\implicit.obj \
43 $(BUILD_DIR)\node.obj \
44 $(BUILD_DIR)\syck.obj \
45 $(BUILD_DIR)\syck_st.obj \
46 $(BUILD_DIR)\token.obj \
47 $(BUILD_DIR)\yaml2byte.obj
48
49 lib\gram.tab.c: lib\gram.y
50 $(BISON) -d -t -v -p syck -o $@ $**
51
52 {lib\}.c{$(BUILD_DIR)\}.obj::
53 $(CL) $(CFLAGS) $<
54
55 $(BUILD_DIR):
56 @if not exist $(BUILD_DIR) @mkdir $(BUILD_DIR)
57
58 $(TARGET): $(SRCS) $(OBJS)
59 $(MAKE_LIB) $(LDFLAGS) $(OBJS) /OUT:"$(TARGET)" /LTCG
60
61 .PHONY: clean
62 clean:
63 -del $(OBJS) $(TARGET)
Something went wrong with that request. Please try again.