ikarus/bin/Makefile

65 lines
1.7 KiB
Makefile
Raw Normal View History

2006-11-23 19:38:26 -05:00
2007-10-16 02:10: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 \
2007-10-17 09:22:47 -04:00
ikarus-verify-integrity.o ikarus-winmmap.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
2007-10-17 09:22:47 -04:00
ikarus-main.o: ikarus-main.c ikarus-data.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-main.c
2006-11-23 19:38:26 -05:00
2007-10-17 09:22:47 -04:00
ikarus-enter.o: ikarus-enter.s ikarus-data.h
2006-11-23 19:53:15 -05:00
$(CC) $(CFLAGS) -c ikarus-enter.s
2007-10-17 09:22:47 -04:00
ikarus-runtime.o: ikarus-runtime.c ikarus-data.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-runtime.c
2006-11-23 19:38:26 -05:00
2007-10-17 09:22:47 -04:00
ikarus-fasl.o: ikarus-fasl.c ikarus-data.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-fasl.c
2006-11-23 19:38:26 -05:00
2007-10-17 09:22:47 -04:00
ikarus-verify-integrity.o: ikarus-verify-integrity.c ikarus-data.h
$(CC) $(CFLAGS) -c ikarus-verify-integrity.c
2007-10-17 09:22:47 -04:00
ikarus-exec.o: ikarus-exec.c ikarus-data.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-exec.c
2006-11-23 19:38:26 -05:00
2007-10-17 09:22:47 -04:00
ikarus-print.o: ikarus-print.c ikarus-data.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-print.c
2006-11-23 19:38:26 -05:00
2007-10-17 09:22:47 -04:00
ikarus-collect.o: ikarus-collect.c ikarus-data.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-collect.c
2006-11-23 19:38:26 -05:00
2007-10-17 09:22:47 -04:00
ikarus-weak-pairs.o: ikarus-weak-pairs.c ikarus-data.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-weak-pairs.c
2006-11-23 19:38:26 -05:00
2007-10-17 09:22:47 -04:00
ikarus-symbol-table.o: ikarus-symbol-table.c ikarus-data.h
2006-11-23 19:44:29 -05:00
$(CC) $(CFLAGS) -c ikarus-symbol-table.c
2006-11-23 19:38:26 -05:00
2007-10-17 09:22:47 -04:00
ikarus-numerics.o: ikarus-numerics.c ikarus-data.h
2006-11-23 19:48:14 -05:00
$(CC) $(CFLAGS) -c ikarus-numerics.c
2007-10-17 09:22:47 -04:00
ikarus-flonums.o: ikarus-flonums.c ikarus-data.h
$(CC) $(CFLAGS) -c ikarus-flonums.c
2007-10-17 09:22:47 -04:00
ikarus-winmmap.o: ikarus-winmmap.c ikarus-winmmap.h
$(CC) $(CFLAGS) -c ikarus-winmmap.c
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