hekate/modules/simple_sample/Makefile

26 lines
511 B
Makefile
Raw Normal View History

include ../../rules/dkarm_compat
2018-08-13 11:58:24 +03:00
TARGET := module_sample
BUILD := ../../build/$(TARGET)
OUTPUT := ../../output
VPATH = $(dir $(wildcard ./*/)) $(dir $(wildcard ./*/*/))
OBJS = $(addprefix $(BUILD)/,\
module_sample.o \
2018-08-21 04:14:31 +03:00
gfx.o \
2018-08-13 11:58:24 +03:00
)
.PHONY: clean all
all: $(TARGET).bso
$(BUILD)/%.o: ./%.c
@mkdir -p "$(BUILD)"
$(CC) $(SO_CFLAGS) -c $< -o $@
2018-08-13 11:58:24 +03:00
$(TARGET).bso: $(OBJS)
$(CC) $(SO_LDFLAGS) -e _modInit $^ -o $(OUTPUT)/$(TARGET).bso
2018-08-21 04:14:31 +03:00
$(STRIP) -g $(OUTPUT)/$(TARGET).bso
2018-08-13 11:58:24 +03:00
clean:
@rm -rf $(OUTPUT)/$(TARGET).bso