ikarus/bin/Makefile

64 lines
1.6 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
2007-09-09 14:19:51 -04:00
LDFLAGS = -L/opt/local/lib -g -ldl -lgmp -lz -lm
2006-11-23 19:44:29 -05:00
CC = gcc
2006-11-23 19:38:26 -05:00
2007-09-09 14:19:51 -04:00
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 \
2006-11-23 19:53:15 -05:00
ikarus-exec.o ikarus-print.o ikarus-enter.o ikarus-symbol-table.o \
2007-09-09 14:19:51 -04:00
ikarus-weak-pairs.o ikarus-numerics.o ikarus-flonums.o verify-integrity.o
all: ikarus
ikarus: $(objects)
$(CC) $(LDFLAGS) -o ikarus $(objects)
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
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:
2007-09-09 14:19:51 -04:00
rm -f $(obj)
realclean:
rm -f $(obj) ikarus