2019-12-11 14:58:50 -05:00
|
|
|
MEMDUMP_TGT = memdump
|
|
|
|
BLKDUMP_TGT = blkdump
|
|
|
|
UPLOAD_TGT = upload
|
2020-01-07 18:26:40 -05:00
|
|
|
FONTCOMPILE_TGT = fontcompile
|
2020-01-11 22:45:22 -05:00
|
|
|
TTYSAFE_TGT = ttysafe
|
|
|
|
PINGPONG_TGT = pingpong
|
2020-04-07 17:56:55 -04:00
|
|
|
BIN2C_TGT = bin2c
|
2020-04-13 10:25:27 -04:00
|
|
|
EXEC_TGT = exec
|
2020-04-13 22:05:03 -04:00
|
|
|
BLKPACK_TGT = blkpack
|
2020-04-16 19:44:17 -04:00
|
|
|
BLKUNPACK_TGT = blkunpack
|
2020-05-01 14:39:13 -04:00
|
|
|
BLKUP_TGT = blkup
|
2020-01-11 22:45:22 -05:00
|
|
|
TARGETS = $(MEMDUMP_TGT) $(BLKDUMP_TGT) $(UPLOAD_TGT) $(FONTCOMPILE_TGT) \
|
2020-05-01 14:39:13 -04:00
|
|
|
$(TTYSAFE_TGT) $(PINGPONG_TGT) $(BIN2C_TGT) $(EXEC_TGT) $(BLKPACK_TGT) \
|
|
|
|
$(BLKUNPACK_TGT) $(BLKUP_TGT)
|
2019-12-09 22:01:22 -05:00
|
|
|
OBJS = common.o
|
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
2019-12-08 22:31:15 -05:00
|
|
|
|
2020-02-12 10:12:46 -05:00
|
|
|
$(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-07 17:56:55 -04:00
|
|
|
$(BIN2C_TGT): $(BIN2C_TGT).c
|
2020-04-13 10:25:27 -04:00
|
|
|
$(EXEC_TGT): $(EXEC_TGT).c
|
2020-04-13 22:05:03 -04:00
|
|
|
$(BLKPACK_TGT): $(BLKPACK_TGT).c
|
2020-04-16 19:44:17 -04:00
|
|
|
$(BLKUNPACK_TGT): $(BLKUNPACK_TGT).c
|
2020-05-01 14:39:13 -04:00
|
|
|
$(BLKUP_TGT): $(BLKUP_TGT).c
|
2020-02-12 10:12:46 -05:00
|
|
|
$(TARGETS): $(OBJS)
|
2020-01-07 18:26:40 -05:00
|
|
|
$(CC) $(CFLAGS) $@.c $(OBJS) -o $@
|
2019-12-08 22:31:15 -05:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2019-12-09 22:01:22 -05:00
|
|
|
rm -f $(TARGETS) $(OBJS)
|