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
|
|
|
|
TARGETS = $(MEMDUMP_TGT) $(BLKDUMP_TGT) $(UPLOAD_TGT) $(FONTCOMPILE_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-01-07 18:26:40 -05:00
|
|
|
$(TARGETS): $@.c $(OBJS)
|
|
|
|
$(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)
|