a proper makefile
parent
4cf12addb2
commit
1a8b27a59b
|
@ -0,0 +1,26 @@
|
|||
CC = gcc34
|
||||
CFLAGS = -Os -march=pentium4 -Wall -Wno-long-long
|
||||
LIBS = -lm
|
||||
STRIP = strip
|
||||
|
||||
OBJS = native/arithmetic.o native/array.o native/bignum.o \
|
||||
native/complex.o native/cons.o native/error.o \
|
||||
native/factor.o native/fd.o native/file.o \
|
||||
native/fixnum.o native/float.o native/gc.o \
|
||||
native/image.o native/iomux.o native/memory.o \
|
||||
native/misc.o native/port.o native/primitives.o \
|
||||
native/ratio.o native/relocate.o native/run.o \
|
||||
native/sbuf.o native/socket.o native/stack.o \
|
||||
native/string.o native/types.o native/vector.o \
|
||||
native/word.o
|
||||
|
||||
f: $(OBJS)
|
||||
$(CC) $(LIBS) -o $@ $(OBJS)
|
||||
$(STRIP) $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS)
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
|
4
build.sh
4
build.sh
|
@ -1,4 +0,0 @@
|
|||
export CC=gcc
|
||||
export CFLAGS="-lm -g -Wall -Wno-long-long -Wno-inline"
|
||||
|
||||
$CC $CFLAGS -o f native/*.c
|
|
@ -55,8 +55,8 @@ USE: namespaces
|
|||
|
||||
( -- )
|
||||
[
|
||||
"in" get [ close-fd ] when*
|
||||
"out" get [ dup flush-fd close-fd ] when*
|
||||
"in" get [ close-fd ] when*
|
||||
] "fclose" set
|
||||
] extend ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue