ikarus/bin/Makefile

68 lines
1.7 KiB
Makefile
Raw Normal View History

2006-11-23 19:38:26 -05:00
2007-09-09 14:19:51 -04:00
CFLAGS = -I/opt/local/include -Wall -DNDEBUG -O3
#CFLAGS = -I/opt/local/include -Wall -g
LDFLAGS = -L/opt/local/lib -g -ldl -lgmp -lm
2006-11-23 19:44:29 -05:00
CC = gcc
2006-11-23 19:38:26 -05:00
ifeq ("$(shell uname)", "Linux")
2007-09-09 14:19:51 -04:00
LDFLAGS += -rdynamic # dlsym(local_symbol) won't work otherwise
endif
objects = ikarus-collect.o ikarus-runtime.o ikarus-main.o ikarus-fasl.o \
2006-11-23 19:53:15 -05:00
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 ikarus.at.o
2007-09-09 14:19:51 -04:00
all: ikarus
ikarus: $(objects)
$(CC) -o ikarus $(objects) $(LDFLAGS)
2006-11-23 19:38:26 -05:00
ikarus-main.o: ikarus-main.c ikarus.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-main.c
2006-11-23 19:38:26 -05:00
2006-11-23 19:53:15 -05:00
ikarus-enter.o: ikarus-enter.s ikarus.h
$(CC) $(CFLAGS) -c ikarus-enter.s
2006-11-23 19:38:26 -05:00
ikarus-runtime.o: ikarus-runtime.c ikarus.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-runtime.c
2006-11-23 19:38:26 -05:00
ikarus-fasl.o: ikarus-fasl.c ikarus.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-fasl.c
2006-11-23 19:38:26 -05:00
verify-integrity.o: verify-integrity.c ikarus.h
$(CC) $(CFLAGS) -c verify-integrity.c
2006-11-23 19:38:26 -05:00
ikarus-exec.o: ikarus-exec.c ikarus.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-exec.c
2006-11-23 19:38:26 -05:00
ikarus-print.o: ikarus-print.c ikarus.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-print.c
2006-11-23 19:38:26 -05:00
ikarus-collect.o: ikarus-collect.c ikarus.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-collect.c
2006-11-23 19:38:26 -05:00
2006-11-23 19:42:39 -05:00
ikarus-weak-pairs.o: ikarus-weak-pairs.c ikarus.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-weak-pairs.c
2006-11-23 19:38:26 -05:00
2006-11-23 19:42:39 -05:00
ikarus-symbol-table.o: ikarus-symbol-table.c ikarus.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-symbol-table.c
2006-11-23 19:38:26 -05:00
2006-11-23 19:48:14 -05:00
ikarus-numerics.o: ikarus-numerics.c ikarus.h
$(CC) $(CFLAGS) -c ikarus-numerics.c
ikarus-flonums.o: ikarus-flonums.c ikarus.h
$(CC) $(CFLAGS) -c ikarus-flonums.c
ikarus.at.o: ikarus.at.c ikarus.h
$(CC) $(CFLAGS) -c ikarus.at.c
2006-11-23 19:38:26 -05:00
ikarus.h: ikarus-data.h
touch ikarus.h
2006-11-23 19:40:06 -05:00
clean:
rm -f $(objects)
2007-09-09 14:19:51 -04:00
realclean:
rm -f $(objects) ikarus