StupidOS/tools/Makefile

29 lines
551 B
Makefile
Raw Normal View History

2024-03-03 14:07:47 +00:00
CC = gcc
RM = rm -f
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
2024-03-20 15:51:27 +00:00
CFLAGS = -DMK_COMMIT="$(MK_COMMIT)" -DMK_BUGREPORT="$(MK_BUGREPORT)" -I../include
2024-03-03 14:07:47 +00:00
LDFLAGS =
.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
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
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: