2011-10-20 18:12:06 +02:00
|
|
|
include ../config
|
|
|
|
|
|
|
|
STDLIB_INTERFACE=pervasives.epi
|
|
|
|
STDLIB_OBJ=$(STDLIB_INTERFACE:.epi=.epci)
|
|
|
|
|
2011-11-10 16:52:05 +01:00
|
|
|
C_DIR=c
|
2011-10-20 18:12:06 +02:00
|
|
|
C_OBJ=pervasives.h
|
|
|
|
|
|
|
|
.SUFFIXES: .epi .epci
|
|
|
|
|
|
|
|
.epi.epci:
|
|
|
|
../compiler/$(COMPILER).$(TARGET) -nopervasives $<
|
|
|
|
|
2011-11-21 09:12:14 +01:00
|
|
|
.PHONY: all install clean
|
2011-10-20 18:12:06 +02:00
|
|
|
|
|
|
|
all: $(STDLIB_OBJ)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
$(INSTALL) -d $(INSTALL_LIBDIR)
|
|
|
|
$(INSTALL) $(STDLIB_OBJ) $(STDLIB_INTERFACE) $(INSTALL_LIBDIR)
|
2011-11-10 16:52:05 +01:00
|
|
|
$(INSTALL) -d $(INSTALL_LIBDIR)/$(C_DIR)
|
2011-10-20 18:12:06 +02:00
|
|
|
(cd c/; $(INSTALL) $(C_OBJ) $(INSTALL_LIBDIR)/$(C_DIR))
|
|
|
|
|
2011-11-10 16:52:05 +01:00
|
|
|
clean:
|
2011-11-21 10:55:39 +01:00
|
|
|
rm -f *.epci
|