2011-10-20 18:12:06 +02:00
|
|
|
include ../config
|
|
|
|
|
2015-09-17 16:51:24 +02:00
|
|
|
STDLIB_INTERFACE=pervasives.epi iostream.epi math.epi
|
2011-10-20 18:12:06 +02:00
|
|
|
STDLIB_OBJ=$(STDLIB_INTERFACE:.epi=.epci)
|
|
|
|
|
2011-11-10 16:52:05 +01:00
|
|
|
C_DIR=c
|
2015-09-17 16:51:24 +02:00
|
|
|
C_OBJ=pervasives.h math.h math.c
|
2011-10-20 18:12:06 +02:00
|
|
|
|
|
|
|
.SUFFIXES: .epi .epci
|
|
|
|
|
2011-11-21 09:12:14 +01:00
|
|
|
.PHONY: all install clean
|
2011-10-20 18:12:06 +02:00
|
|
|
|
|
|
|
all: $(STDLIB_OBJ)
|
|
|
|
|
2012-07-14 14:35:34 +02:00
|
|
|
pervasives.epci: pervasives.epi
|
|
|
|
../compiler/$(COMPILER).$(TARGET) -nopervasives $<
|
|
|
|
|
|
|
|
%.epci: %.epi
|
|
|
|
../compiler/$(COMPILER).$(TARGET) $<
|
|
|
|
|
2011-10-20 18:12:06 +02:00
|
|
|
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))
|
|
|
|
|
2015-02-27 15:50:21 +01:00
|
|
|
uninstall:
|
|
|
|
$(foreach f,$(STDLIB_OBJ) $(STDLIB_INTERFACE),$(RM) $(INSTALL_LIBDIR)/$(f))
|
|
|
|
$(RM) $(INSTALL_LIBDIR)/$(C_DIR)/$(C_OBJ)
|
|
|
|
|
2011-11-10 16:52:05 +01:00
|
|
|
clean:
|
2012-07-14 14:35:34 +02:00
|
|
|
rm -f *.epci
|
|
|
|
|