65 lines
1.7 KiB
Makefile
65 lines
1.7 KiB
Makefile
|
|
CFLAGS = -I/opt/local/include -Wall -DNDEBUG -O3
|
|
#CFLAGS = -I/opt/local/include -Wall -g
|
|
LDFLAGS = -L/opt/local/lib -g -ldl -lgmp -lm
|
|
CC = gcc
|
|
|
|
ifeq ("$(shell 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 \
|
|
ikarus-verify-integrity.o ikarus-winmmap.o
|
|
|
|
all: ikarus
|
|
|
|
ikarus: $(objects)
|
|
$(CC) -o ikarus $(objects) $(LDFLAGS)
|
|
|
|
ikarus-main.o: ikarus-main.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-main.c
|
|
|
|
ikarus-enter.o: ikarus-enter.s ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-enter.s
|
|
|
|
ikarus-runtime.o: ikarus-runtime.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-runtime.c
|
|
|
|
ikarus-fasl.o: ikarus-fasl.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-fasl.c
|
|
|
|
ikarus-verify-integrity.o: ikarus-verify-integrity.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-verify-integrity.c
|
|
|
|
ikarus-exec.o: ikarus-exec.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-exec.c
|
|
|
|
ikarus-print.o: ikarus-print.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-print.c
|
|
|
|
ikarus-collect.o: ikarus-collect.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-collect.c
|
|
|
|
ikarus-weak-pairs.o: ikarus-weak-pairs.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-weak-pairs.c
|
|
|
|
ikarus-symbol-table.o: ikarus-symbol-table.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-symbol-table.c
|
|
|
|
ikarus-numerics.o: ikarus-numerics.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-numerics.c
|
|
|
|
ikarus-flonums.o: ikarus-flonums.c ikarus-data.h
|
|
$(CC) $(CFLAGS) -c ikarus-flonums.c
|
|
|
|
ikarus-winmmap.o: ikarus-winmmap.c ikarus-winmmap.h
|
|
$(CC) $(CFLAGS) -c ikarus-winmmap.c
|
|
|
|
clean:
|
|
rm -f $(objects)
|
|
|
|
realclean:
|
|
rm -f $(objects) ikarus
|