2019-12-12 06:58:50 +11:00
|
|
|
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-03 14:15:43 +11:00
|
|
|
SLATEST_TGT = slatest
|
2020-04-05 01:27:21 +11:00
|
|
|
STRIPFC_TGT = stripfc
|
2020-01-12 14:45:22 +11:00
|
|
|
TARGETS = $(MEMDUMP_TGT) $(BLKDUMP_TGT) $(UPLOAD_TGT) $(FONTCOMPILE_TGT) \
|
2020-04-05 01:27:21 +11:00
|
|
|
$(TTYSAFE_TGT) $(PINGPONG_TGT) $(SLATEST_TGT) $(STRIPFC_TGT)
|
2019-12-10 14:01:22 +11:00
|
|
|
OBJS = common.o
|
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
2019-12-09 14:31:15 +11:00
|
|
|
|
2020-02-13 02:12:46 +11: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-03 14:15:43 +11:00
|
|
|
$(SLATEST_TGT): $(SLATEST_TGT).c
|
2020-04-05 01:27:21 +11:00
|
|
|
$(STRIPFC_TGT): $(STRIPFC_TGT).c
|
2020-02-13 02:12:46 +11:00
|
|
|
$(TARGETS): $(OBJS)
|
2020-01-08 10:26:40 +11:00
|
|
|
$(CC) $(CFLAGS) $@.c $(OBJS) -o $@
|
2019-12-09 14:31:15 +11:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2019-12-10 14:01:22 +11:00
|
|
|
rm -f $(TARGETS) $(OBJS)
|