blob: 877e370af5d88cadc42df215b93b4877873a615f (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
@echo on
@dir . > nul
REM override variables either here or from the shell
set source_dir=%source_dir%
set sysroot=%sysroot%
if not exist bin mkdir bin
if not exist lib mkdir lib
if not exist src mkdir src
@if %errorlevel% neq 0 exit /b %errorlevel%
cl /nologo -c /Fo:src/dalist.lo %source_dir%/src/dalist.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X /GS- -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DDALIST_TAG_VER_MAJOR=0 -DDALIST_TAG_VER_MINOR=0 -DDALIST_TAG_VER_PATCH=0 /Wall /WX /Wall -DDALIST_EXPORT -I%sysroot%/include
@if %errorlevel% neq 0 exit /b %errorlevel%
cl /nologo -c /Fo:src/dalist_debug.lo %source_dir%/src/dalist_debug.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X /GS- -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DDALIST_TAG_VER_MAJOR=0 -DDALIST_TAG_VER_MINOR=0 -DDALIST_TAG_VER_PATCH=0 /Wall /WX /Wall -DDALIST_EXPORT -I%sysroot%/include
@if %errorlevel% neq 0 exit /b %errorlevel%
cl /nologo -c /Fo:src/dalist_entry_point.lo %source_dir%/src/dalist_entry_point.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X /GS- -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DDALIST_TAG_VER_MAJOR=0 -DDALIST_TAG_VER_MINOR=0 -DDALIST_TAG_VER_PATCH=0 /Wall /WX /Wall -DDALIST_EXPORT -I%sysroot%/include
@if %errorlevel% neq 0 exit /b %errorlevel%
cl /nologo -c /Fo:src/dalist_memfn.lo %source_dir%/src/dalist_memfn.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X /GS- -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DDALIST_TAG_VER_MAJOR=0 -DDALIST_TAG_VER_MINOR=0 -DDALIST_TAG_VER_PATCH=0 /Wall /WX /Wall -DDALIST_EXPORT -I%sysroot%/include
@if %errorlevel% neq 0 exit /b %errorlevel%
cl /nologo -c /Fo:src/dalist.o %source_dir%/src/dalist.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X /GS- -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DDALIST_TAG_VER_MAJOR=0 -DDALIST_TAG_VER_MINOR=0 -DDALIST_TAG_VER_PATCH=0 /Wall /WX /Wall -DDALIST_STATIC -I%sysroot%/include
@if %errorlevel% neq 0 exit /b %errorlevel%
cl /nologo -c /Fo:src/dalist_debug.o %source_dir%/src/dalist_debug.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X /GS- -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DDALIST_TAG_VER_MAJOR=0 -DDALIST_TAG_VER_MINOR=0 -DDALIST_TAG_VER_PATCH=0 /Wall /WX /Wall -DDALIST_STATIC -I%sysroot%/include
@if %errorlevel% neq 0 exit /b %errorlevel%
cl /nologo -c /Fo:src/dalist_entry_point.o %source_dir%/src/dalist_entry_point.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X /GS- -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DDALIST_TAG_VER_MAJOR=0 -DDALIST_TAG_VER_MINOR=0 -DDALIST_TAG_VER_PATCH=0 /Wall /WX /Wall -DDALIST_STATIC -I%sysroot%/include
@if %errorlevel% neq 0 exit /b %errorlevel%
cl /nologo -c /Fo:src/dalist_memfn.o %source_dir%/src/dalist_memfn.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X /GS- -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DDALIST_TAG_VER_MAJOR=0 -DDALIST_TAG_VER_MINOR=0 -DDALIST_TAG_VER_PATCH=0 /Wall /WX /Wall -DDALIST_STATIC -I%sysroot%/include
@if %errorlevel% neq 0 exit /b %errorlevel%
@echo.
@echo clbuild: successfully built: shared-objs static-objs app-objs.
@echo.
lib /out:lib/libdalist.a src/dalist.o src/dalist_debug.o src/dalist_entry_point.o src/dalist_memfn.o /nologo
@if %errorlevel% neq 0 exit /b %errorlevel%
@echo.
@echo clbuild: successfully created: static archive.
@echo.
link /dll /nologo /out:lib/libdalist.so src/dalist.lo src/dalist_debug.lo src/dalist_entry_point.lo src/dalist_memfn.lo /libpath:lib /subsystem:windows /nodefaultlib /entry:dalist_entry_point
@if %errorlevel% neq 0 exit /b %errorlevel%
@echo.
@echo clbuild: successfully linked: shared library.
@echo.
@echo.
@echo yay.
@echo.
|