-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
49 lines (43 loc) · 1.68 KB
/
Makefile
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
# Choose a C compiler. (Must be ANSI C capable).
CC = cc -flto
RM = rm -f
#
# 64bit emulator on Linux-x64, 32bit emulator on Linux-armhf
# CC = gcc -flto -ffloat-store -frounding-math
#
# 32bit emulator on Linux-x86
# CC = gcc -m32 -mfpmath=sse -msse2 -ffloat-store -frounding-math
#
# 32bit/64bit emulator on Linux-POWER
# CC = gcc [-m64] -ffloat-store -frounding-math -std=c99
#
# For a well-optimised version compiled with gcc on a Sun use:
# CFLAGS = -O2 -DSUN -finline -finline-functions -fexpensive-optimizations
# For a reasonably optimised version for NetBSD.
# Define
# -DT4CACHEBITS=N Icache size is 2^N (default 14, 16K)
# -DT4NANOMSG=1 use the nanomsg library for links
# -DT4SHLINKS=1 use shared-memory links
# -DT4COMBINATIONS=1 to replace common instruction sequences
# -DT4RELEASE=1 produce fast emulator (no profiling,tracing)
#
CFLAGS = -I. -O2 -fomit-frame-pointer -Wall -DCURTERM=1 -DT4SHLINKS=1 -DT4COMBINATIONS=1
# For a reasonably optimised version for SunOS 4.1.4.
# CFLAGS = -O2 -Wall -DSUN
# Put any additional libraries here.
LFLAGS = -lm
#
# 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.o s_scalbn.o s_scalbnf.o s_ldexp.o s_ldexpf.o \
e_fmod.o e_remainder.o e_sqrt.o w_remainder.o w_sqrt.o
SRC = $(FDMSRC) curterm.c arithmetic.c fparithmetic.c netcfg.c shlink.c server.c p.c main.c
OBJ = $(FDMOBJ) curterm.o arithmetic.o fparithmetic.o netcfg.o shlink.o server.o p.o main.o
t4 : $(SRC)
$(CC) $(CFLAGS) $(SRC) $(LFLAGS) -o t4
strip t4
ls -l t4
clean :
$(RM) t4 $(OBJ)