factor/Makefile

42 lines
1.1 KiB
Makefile
Raw Normal View History

2004-10-09 15:14:49 -04:00
CC = gcc34
2004-09-06 02:32:04 -04:00
2004-09-18 18:15:01 -04:00
# On FreeBSD, to use SDL and other libc_r libs:
2004-10-09 15:14:49 -04:00
# CFLAGS = -g -Wall -export-dynamic -pthread
2004-09-06 02:32:04 -04:00
# On PowerPC G5:
# CFLAGS = -mcpu=970 -mtune=970 -mpowerpc64 -ffast-math -O3
# On Pentium 4:
2004-10-09 15:14:49 -04:00
CFLAGS = -march=pentium4 -ffast-math -Os -fomit-frame-pointer -export-dynamic -pthread
2004-09-06 02:32:04 -04:00
# Add -fomit-frame-pointer if you don't care about debugging
2004-09-18 18:15:01 -04:00
# CFLAGS = -Os -g -Wall
2004-09-06 02:32:04 -04:00
# On Solaris:
# LIBS = -lsocket -lnsl -lm
2004-08-15 23:31:07 -04:00
LIBS = -lm
2004-09-06 02:32:04 -04:00
2004-08-15 23:31:07 -04:00
STRIP = strip
OBJS = native/arithmetic.o native/array.o native/bignum.o \
native/s48_bignum.o \
2004-08-15 23:31:07 -04:00
native/complex.o native/cons.o native/error.o \
2004-08-20 01:49:14 -04:00
native/factor.o native/file.o native/fixnum.o \
native/float.o native/gc.o \
2004-08-20 01:50:59 -04:00
native/image.o native/io.o native/memory.o \
2004-08-15 23:31:07 -04:00
native/misc.o native/port.o native/primitives.o \
2004-08-20 01:49:14 -04:00
native/ratio.o native/read.o native/relocate.o \
native/run.o \
2004-08-15 23:31:07 -04:00
native/sbuf.o native/socket.o native/stack.o \
native/string.o native/types.o native/vector.o \
2004-09-18 18:15:01 -04:00
native/write.o native/word.o native/compiler.o \
native/ffi.o
2004-08-15 23:31:07 -04:00
f: $(OBJS)
2004-09-06 02:32:04 -04:00
$(CC) $(LIBS) $(CFLAGS) -o $@ $(OBJS)
2004-09-02 21:51:19 -04:00
# $(STRIP) $@
2004-08-15 23:31:07 -04:00
clean:
rm -f $(OBJS)
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<