a proper makefile

cvs
Slava Pestov 2004-08-16 03:31:07 +00:00
parent 4cf12addb2
commit 1a8b27a59b
3 changed files with 27 additions and 5 deletions

26
Makefile Normal file
View File

@ -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 $@ $<

View File

@ -1,4 +0,0 @@
export CC=gcc
export CFLAGS="-lm -g -Wall -Wno-long-long -Wno-inline"
$CC $CFLAGS -o f native/*.c

View File

@ -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 ;