* Added conditional build for linux.
This commit is contained in:
parent
1cd2b8acfc
commit
c811812726
30
bin/Makefile
30
bin/Makefile
|
@ -1,19 +1,21 @@
|
|||
|
||||
CFLAGS = -I/opt/local/include -Wall -DNDEBUG -O3 #-fomit-frame-pointer
|
||||
CFLAGS = -I/opt/local/include -Wall -DNDEBUG -O3
|
||||
#CFLAGS = -I/opt/local/include -Wall -g
|
||||
LDFLAGS = -L/opt/local/lib -g -ldl -lgmp -lz -lm #-rdynamic
|
||||
LDFLAGS = -L/opt/local/lib -g -ldl -lgmp -lz -lm
|
||||
CC = gcc
|
||||
|
||||
ifeq ($(shell /usr/bin/uname), "Linux")
|
||||
LDFLAGS += -rdynamic # dlsym(local_symbol) won't work otherwise
|
||||
endif
|
||||
|
||||
objects = ikarus-collect.o ikarus-runtime.o ikarus-main.o ikarus-fasl.o \
|
||||
ikarus-exec.o ikarus-print.o ikarus-enter.o ikarus-symbol-table.o \
|
||||
ikarus-weak-pairs.o ikarus-numerics.o ikarus-flonums.o verify-integrity.o
|
||||
|
||||
all: ikarus
|
||||
|
||||
ikarus: ikarus-collect.o ikarus-runtime.o ikarus-main.o ikarus-fasl.o \
|
||||
ikarus-exec.o ikarus-print.o ikarus-enter.o ikarus-symbol-table.o \
|
||||
ikarus-weak-pairs.o ikarus-numerics.o ikarus-flonums.o \
|
||||
verify-integrity.o
|
||||
$(CC) $(LDFLAGS) -o ikarus \
|
||||
ikarus-main.o ikarus-runtime.o \
|
||||
ikarus-fasl.o ikarus-exec.o ikarus-print.o ikarus-enter.o \
|
||||
ikarus-symbol-table.o ikarus-collect.o ikarus-weak-pairs.o \
|
||||
ikarus-numerics.o ikarus-flonums.o verify-integrity.o
|
||||
ikarus: $(objects)
|
||||
$(CC) $(LDFLAGS) -o ikarus $(objects)
|
||||
|
||||
ikarus-main.o: ikarus-main.c ikarus.h
|
||||
$(CC) $(CFLAGS) -c ikarus-main.c
|
||||
|
@ -21,7 +23,6 @@ ikarus-main.o: ikarus-main.c ikarus.h
|
|||
ikarus-enter.o: ikarus-enter.s ikarus.h
|
||||
$(CC) $(CFLAGS) -c ikarus-enter.s
|
||||
|
||||
|
||||
ikarus-runtime.o: ikarus-runtime.c ikarus.h
|
||||
$(CC) $(CFLAGS) -c ikarus-runtime.c
|
||||
|
||||
|
@ -56,4 +57,7 @@ ikarus.h: ikarus-data.h
|
|||
touch ikarus.h
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f $(obj)
|
||||
|
||||
realclean:
|
||||
rm -f $(obj) ikarus
|
||||
|
|
BIN
bin/ikarus
BIN
bin/ikarus
Binary file not shown.
Loading…
Reference in New Issue