summaryrefslogtreecommitdiff
path: root/runtime/Makefile
blob: ef8e21b21f6759a1ff4ef8b071e19d603df3948a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
include ../Makefile.config

CFLAGS=-O1 -g -Wall
OBJS=stdio.o
LIB=libcompcert.a
INCLUDES=stdio.h

ifeq ($(strip $(NEED_STDLIB_WRAPPER)),true)
all: $(LIB) $(INCLUDES)
else
all:
endif

$(LIB): $(OBJS)
	rm -f $(LIB)
	ar rcs $(LIB) $(OBJS)

clean:
	rm -f *.o $(LIB)

ifeq ($(strip $(NEED_STDLIB_WRAPPER)),true)
install:
	install -d $(LIBDIR)
	install -c $(LIB) $(INCLUDES) $(LIBDIR)
else
install:
endif