mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-17 00:49:24 +01:00
24 lines
332 B
Makefile
24 lines
332 B
Makefile
|
include ../starlet.mk
|
||
|
|
||
|
CFLAGS += -fpic
|
||
|
LDSCRIPT = stub.ld
|
||
|
LIBS = -lgcc
|
||
|
|
||
|
TARGET = elfloader.elf
|
||
|
TARGET_BIN = elfloader.bin
|
||
|
OBJS = start.o stub.o string.o utils.o
|
||
|
|
||
|
include ../common.mk
|
||
|
|
||
|
all: $(TARGET_BIN)
|
||
|
|
||
|
$(TARGET_BIN): $(TARGET)
|
||
|
@echo " OBJCPY $@"
|
||
|
@$(OBJCOPY) -O binary $< $@
|
||
|
|
||
|
clean: myclean
|
||
|
|
||
|
myclean:
|
||
|
-rm -f $(TARGET_BIN)
|
||
|
|