forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWindows.mk
65 lines (46 loc) · 1.46 KB
/
Windows.mk
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
!INCLUDE <..\..\Windows.inc>
.SUFFIXES: .c
NAME = flisp
SOURCES = \
builtins.c \
string.c \
equalhash.c \
table.c \
iostream.c \
julia_extensions.c
HEADERS = \
flisp.h \
opcodes.h \
libgen.h
OBJECTS = \
flisp.obj \
builtins.obj \
string.obj \
equalhash.obj \
table.obj \
iostream.obj \
julia_extensions.obj
LIBUV = $(MAKEDIR)\..\..\deps\libuv\libuv.lib
LIBUTF8PROC = $(MAKEDIR)\..\..\deps\libutf8proc\libutf8proc.lib
LIBSUPPORT = $(MAKEDIR)\..\support\libsupport.lib
INCLUDE = $(INCLUDE);$(MAKEDIR)\..\..\deps\libuv\include;$(MAKEDIR)\..\..\deps\libutf8proc;$(MAKEDIR)\..\support
CFLAGS = $(CFLAGS) /Qstd=c99 -D_CRT_SECURE_NO_WARNINGS -DLIBRARY_EXPORTS
LFLAGS = $(LFLAGS) kernel32.lib ws2_32.lib psapi.lib advapi32.lib iphlpapi.lib
default: $(NAME).exe
$(NAME).exe: lib$(NAME).lib flmain.obj $(LIBSUPPORT) $(LIBUV) $(LIBUTF8PROC)
$(LINK) $(LFLAGS) /OUT:$(NAME).exe /PDB:$(NAME).pdb /MAP $**
$(LIBSUPPORT):
PUSHD $(MAKEDIR)\..\support && $(MAKE) /NOLOGO /F Windows.mk && POPD
$(LIBUV):
PUSHD $(MAKEDIR)\..\..\deps\libuv && $(MAKE) /NOLOGO /F Windows.mk && POPD
$(LIBUTF8PROC):
PUSHD $(MAKEDIR)\..\..\deps\libutf8proc && cl -nologo /c utf8proc.c && $(AR) /OUT:libutf8proc.lib utf8proc.obj && POPD
lib$(NAME).lib: $(OBJECTS)
$(AR) /OUT:lib$(NAME).lib $**
flisp.obj: flisp.c cvalues.c types.c flisp.h print.c read.c equal.c
$(CC) $(CFLAGS) flisp.c
flmain.obj: flmain.c flisp.h
$(CC) $(CFLAGS) flmain.c
.c.obj:
$(CC) $(CFLAGS) $<
# vim: noexpandtab:ts=4:sw=4: