-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.windows
28 lines (23 loc) · 987 Bytes
/
Makefile.windows
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
# Choose a C compiler. (Must be ANSI C capable).
CC = cl
LINK = link
CFLAGS = /O2 /DCURTERM=1 /fp:strict /GL /favor:INTEL64 /DT4NANOMSG=1 /DT4SHLINKS=1 /I. /DT4RELEASE=1 /DT4COMBINATIONS=1 /MD
RM = del/q
# Put any additional libraries here.
LFLAGS = /subsystem:console /machine:x64 /LTCG /libpath:. nanomsg.lib ws2_32.lib wsock32.lib
#
# https://github.com/JuliaMath/openlibm
#
FDMSRC = k_standard.c s_scalbn.c s_scalbnf.c s_ldexp.c s_ldexpf.c \
e_fmod.c e_remainder.c e_sqrt.c w_remainder.c w_sqrt.c
FDMOBJ = k_standard.obj s_scalbn.obj s_scalbnf.obj s_ldexp.obj s_ldexpf.obj \
e_fmod.obj e_remainder.obj e_sqrt.obj w_remainder.obj w_sqrt.obj
SRC = $(FDMSRC) gettimeofday.c \
curterm.c arithmetic.c fparithmetic.c netcfg.c shlink.c server.c p.c main.c
OBJ = $(FDMOBJ) gettimeofday.obj \
curterm.obj arithmetic.obj fparithmetic.obj netcfg.obj shlink.obj server.obj p.obj main.obj
t4.exe : $(OBJ)
$(LINK) $(OBJ) $(LFLAGS) /out:t4.exe
clean :
$(RM) *.obj
$(RM) t4.exe