2016-07-06 22:06:57 +02:00
|
|
|
include $(CURDIR)/../rules/ppc.mk
|
2015-12-27 03:10:38 +01:00
|
|
|
|
|
|
|
CFILES := $(wildcard *.c)
|
|
|
|
SFILES := $(wildcard *.S)
|
2016-07-06 19:44:48 +02:00
|
|
|
OFILES := $(CFILES:.c=.o) $(SFILES:.S=.o)
|
|
|
|
OUTPUT := libcrt
|
2015-12-27 03:10:38 +01:00
|
|
|
|
2016-07-06 19:44:48 +02:00
|
|
|
all: $(OUTPUT).a $(OFILES)
|
2015-12-27 03:10:38 +01:00
|
|
|
|
|
|
|
clean:
|
2016-07-06 19:44:48 +02:00
|
|
|
@echo "[RM] $(notdir $(OUTPUT))"
|
|
|
|
@rm -f $(OFILES) $(OUTPUT).a
|
2015-12-27 03:10:38 +01:00
|
|
|
|
|
|
|
install: all
|
2016-08-25 13:04:51 +02:00
|
|
|
@mkdir -p $(INSTALLDIR)/lib
|
|
|
|
@cp -f *.a $(INSTALLDIR)/lib
|
2015-12-27 03:10:38 +01:00
|
|
|
|
2016-08-25 13:28:06 +02:00
|
|
|
%.o: %.c
|
|
|
|
@echo "[CC] $(notdir $<)"
|
|
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2015-12-27 03:10:38 +01:00
|
|
|
%.o: %.S
|
|
|
|
@echo "[CC] $(notdir $<)"
|
|
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2016-07-06 19:44:48 +02:00
|
|
|
$(OUTPUT).a: $(OFILES)
|
|
|
|
|
2015-12-27 03:10:38 +01:00
|
|
|
.PHONY: all clean
|