mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 20:01:53 +01:00
26 lines
455 B
Makefile
26 lines
455 B
Makefile
include $(CURDIR)/../rules/ppc.mk
|
|
|
|
WUT_ROOT := $(CURDIR)/..
|
|
CFILES := $(wildcard *.c)
|
|
SFILES := $(wildcard *.S)
|
|
OFILES := $(CFILES:.c=.o) $(SFILES:.S=.o)
|
|
OUTPUT := libcrt
|
|
|
|
all: $(OUTPUT).a $(OFILES)
|
|
|
|
clean:
|
|
@echo "[RM] $(notdir $(OUTPUT))"
|
|
@rm -f $(OFILES) $(OUTPUT).a
|
|
|
|
install: all
|
|
@mkdir -p $(WUT_ROOT)/lib
|
|
@cp -f *.a $(WUT_ROOT)/lib
|
|
|
|
%.o: %.S
|
|
@echo "[CC] $(notdir $<)"
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
$(OUTPUT).a: $(OFILES)
|
|
|
|
.PHONY: all clean
|