1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 12:58:09 +11:00
collapseos/tools/Makefile

40 lines
982 B
Makefile
Raw Normal View History

MEMDUMP_TGT = memdump
BLKDUMP_TGT = blkdump
UPLOAD_TGT = upload
2020-01-08 10:26:40 +11:00
FONTCOMPILE_TGT = fontcompile
2020-01-12 14:45:22 +11:00
TTYSAFE_TGT = ttysafe
PINGPONG_TGT = pingpong
2020-04-05 01:27:21 +11:00
STRIPFC_TGT = stripfc
BIN2C_TGT = bin2c
EXEC_TGT = exec
2020-04-14 12:05:03 +10:00
BLKPACK_TGT = blkpack
BLKUNPACK_TGT = blkunpack
2020-01-12 14:45:22 +11:00
TARGETS = $(MEMDUMP_TGT) $(BLKDUMP_TGT) $(UPLOAD_TGT) $(FONTCOMPILE_TGT) \
$(TTYSAFE_TGT) $(PINGPONG_TGT) $(STRIPFC_TGT) \
$(BIN2C_TGT) $(EXEC_TGT) $(BLKPACK_TGT) $(BLKUNPACK_TGT)
2019-12-10 14:01:22 +11:00
OBJS = common.o
all: $(TARGETS)
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
$(MEMDUMP_TGT): $(MEMDUMP_TGT).c
$(BLKDUMP_TGT): $(BLKDUMP_TGT).c
$(UPLOAD_TGT): $(UPLOAD_TGT).c
$(FONTCOMPILE_TGT): $(FONTCOMPILE_TGT).c
$(TTYSAFE_TGT): $(TTYSAFE_TGT).c
$(PINGPONG_TGT): $(PINGPONG_TGT).c
2020-04-05 01:27:21 +11:00
$(STRIPFC_TGT): $(STRIPFC_TGT).c
$(BIN2C_TGT): $(BIN2C_TGT).c
$(EXEC_TGT): $(EXEC_TGT).c
2020-04-14 12:05:03 +10:00
$(BLKPACK_TGT): $(BLKPACK_TGT).c
$(BLKUNPACK_TGT): $(BLKUNPACK_TGT).c
$(TARGETS): $(OBJS)
2020-01-08 10:26:40 +11:00
$(CC) $(CFLAGS) $@.c $(OBJS) -o $@
.PHONY: clean
clean:
2019-12-10 14:01:22 +11:00
rm -f $(TARGETS) $(OBJS)