heptagon/lib/Makefile
2012-07-14 14:35:34 +02:00

29 lines
575 B
Makefile

include ../config
STDLIB_INTERFACE=pervasives.epi iostream.epi
STDLIB_OBJ=$(STDLIB_INTERFACE:.epi=.epci)
C_DIR=c
C_OBJ=pervasives.h
.SUFFIXES: .epi .epci
.PHONY: all install clean
all: $(STDLIB_OBJ)
pervasives.epci: pervasives.epi
../compiler/$(COMPILER).$(TARGET) -nopervasives $<
%.epci: %.epi
../compiler/$(COMPILER).$(TARGET) $<
install: all
$(INSTALL) -d $(INSTALL_LIBDIR)
$(INSTALL) $(STDLIB_OBJ) $(STDLIB_INTERFACE) $(INSTALL_LIBDIR)
$(INSTALL) -d $(INSTALL_LIBDIR)/$(C_DIR)
(cd c/; $(INSTALL) $(C_OBJ) $(INSTALL_LIBDIR)/$(C_DIR))
clean:
rm -f *.epci