mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-09-22 06:29:37 +03:00
c7cf1f0f1b
* 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.
25 lines
368 B
Makefile
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:
|