Idris-dev/llvm/Makefile
Gabe McArthur c7cf1f0f1b Refactored the build inside Setup.hs and the various Makefiles.
* Refactored the Setup.hs script into a much simpler layout.
* Simplified the idris.cabal file, alphabetizing the modules,
  build dependencies, simplifying the indentation, standardizing the
  flags, and normalizing the formatting of lists.
* Fixed a bug in the generation of the executable_pom.xml file for
  the Java backend.
2013-09-24 00:12:58 -10:00

25 lines
368 B
Makefile

include ../config.mk
CFLAGS:=-Wextra -fPIC -Wno-unused-parameter $(CFLAGS)
SOURCES=defs.c
OBJECTS=$(SOURCES:.c=.o)
LIB=libidris_rts.a
build: $(SOURCES) $(LIB)
$(LIB): $(OBJECTS)
ar r $@ $(OBJECTS)
ranlib $@
.c.o:
$(CC) -c $(CFLAGS) $< -o $@
install: $(LIB) .PHONY
mkdir -p $(TARGET)
install $(LIB) $(TARGET)
clean: .PHONY
rm -f $(OBJECTS) $(LIB)
.PHONY: