2019-12-12 06:58:50 +11:00
|
|
|
MEMDUMP_TGT = memdump
|
|
|
|
UPLOAD_TGT = upload
|
2020-01-12 14:45:22 +11:00
|
|
|
TTYSAFE_TGT = ttysafe
|
|
|
|
PINGPONG_TGT = pingpong
|
2020-04-14 00:25:27 +10:00
|
|
|
EXEC_TGT = exec
|
2020-04-14 12:05:03 +10:00
|
|
|
BLKPACK_TGT = blkpack
|
2020-04-17 09:44:17 +10:00
|
|
|
BLKUNPACK_TGT = blkunpack
|
2020-05-02 04:39:13 +10:00
|
|
|
BLKUP_TGT = blkup
|
2020-10-11 04:28:36 +11:00
|
|
|
SMSROM_TGT = smsrom
|
2020-05-22 12:16:01 +10:00
|
|
|
TARGETS = $(MEMDUMP_TGT) $(UPLOAD_TGT) \
|
2020-05-23 23:54:26 +10:00
|
|
|
$(TTYSAFE_TGT) $(PINGPONG_TGT) $(EXEC_TGT) $(BLKPACK_TGT) \
|
2020-10-11 04:28:36 +11:00
|
|
|
$(BLKUNPACK_TGT) $(BLKUP_TGT) $(SMSROM_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
|
|
|
|
$(UPLOAD_TGT): $(UPLOAD_TGT).c
|
|
|
|
$(TTYSAFE_TGT): $(TTYSAFE_TGT).c
|
|
|
|
$(PINGPONG_TGT): $(PINGPONG_TGT).c
|
2020-04-14 00:25:27 +10:00
|
|
|
$(EXEC_TGT): $(EXEC_TGT).c
|
2020-04-14 12:05:03 +10:00
|
|
|
$(BLKPACK_TGT): $(BLKPACK_TGT).c
|
2020-04-17 09:44:17 +10:00
|
|
|
$(BLKUNPACK_TGT): $(BLKUNPACK_TGT).c
|
2020-05-02 04:39:13 +10:00
|
|
|
$(BLKUP_TGT): $(BLKUP_TGT).c
|
2020-10-11 04:28:36 +11:00
|
|
|
$(SMSROM_TGT): $(SMSROM_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)
|