23 lines
466 B
Makefile
23 lines
466 B
Makefile
TARGET = coff-ld$(EXEXT) parted$(EXEXT) readcoff$(EXEXT) elf2coff$(EXEXT)
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
|
|
coff-ld$(EXEXT): ../bin/ld/main.c
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
|
|
|
readcoff$(EXEXT): ../bin/readcoff/main.c
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
|
|
|
elf2coff$(EXEXT): ../bin/elf2coff/main.c
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
|
|
|
parted$(EXEXT): ../sbin/parted/main.c
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
|
|
|
.PHONY: install
|
|
install: $(TARGET)
|
|
|
|
.PHONY: clean
|
|
clean:
|