StupidOS/tools/Makefile

27 lines
519 B
Makefile
Raw Normal View History

2024-04-28 06:41:36 +00:00
TARGET = fat$(EXEXT) coff-ld$(EXEXT) parted$(EXEXT) mkfs.stpd$(EXEXT)
2024-03-03 14:07:47 +00:00
.PHONY: all
all: $(TARGET)
fat$(EXEXT): fat.c
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
2024-03-20 15:51:27 +00:00
coff-ld$(EXEXT): coff-ld.c
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
2024-04-14 05:35:43 +00:00
parted$(EXEXT): ../sbin/parted/main.c
2024-05-02 11:34:27 +00:00
ifneq (,$(findstring cl,$(CC)))
$(CC) /Fo:$@ $^ $(CFLAGS) $(LDFLAGS)
else
2024-04-14 05:35:43 +00:00
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
2024-05-02 11:34:27 +00:00
endif
2024-04-14 05:35:43 +00:00
2024-04-28 06:41:36 +00:00
mkfs.stpd$(EXEXT): ../sbin/mkfs.stpd/main.c
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
2024-03-03 14:07:47 +00:00
.PHONY: install
install: $(TARGET)
.PHONY: clean
clean: