2019-12-12 06:58:50 +11:00
|
|
|
MEMDUMP_TGT = memdump
|
2019-12-09 14:31:15 +11:00
|
|
|
MEMDUMP_SRC = memdump.c
|
2019-12-12 06:58:50 +11:00
|
|
|
BLKDUMP_TGT = blkdump
|
2019-12-11 02:33:29 +11:00
|
|
|
BLKDUMP_SRC = blkdump.c
|
2019-12-12 06:58:50 +11:00
|
|
|
UPLOAD_TGT = upload
|
2019-12-10 14:01:22 +11:00
|
|
|
UPLOAD_SRC = upload.c
|
2019-12-11 02:33:29 +11:00
|
|
|
TARGETS = $(MEMDUMP_TGT) $(BLKDUMP_TGT) $(UPLOAD_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
|
|
|
|
2019-12-10 14:01:22 +11:00
|
|
|
$(MEMDUMP_TGT): $(MEMDUMP_SRC) $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(MEMDUMP_SRC) $(OBJS) -o $@
|
2019-12-09 14:31:15 +11:00
|
|
|
|
2019-12-11 02:33:29 +11:00
|
|
|
$(BLKDUMP_TGT): $(BLKDUMP_SRC) $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(BLKDUMP_SRC) $(OBJS) -o $@
|
|
|
|
|
2019-12-10 14:01:22 +11:00
|
|
|
$(UPLOAD_TGT): $(UPLOAD_SRC) $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(UPLOAD_SRC) $(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)
|