collapseos/tools/Makefile

36 lines
815 B
Makefile
Raw Normal View History

MEMDUMP_TGT = memdump
UPLOAD_TGT = upload
2020-01-11 22:45:22 -05:00
TTYSAFE_TGT = ttysafe
PINGPONG_TGT = pingpong
BIN2C_TGT = bin2c
EXEC_TGT = exec
2020-04-13 22:05:03 -04:00
BLKPACK_TGT = blkpack
BLKUNPACK_TGT = blkunpack
BLKUP_TGT = blkup
2020-05-21 22:16:01 -04:00
TARGETS = $(MEMDUMP_TGT) $(UPLOAD_TGT) \
$(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 $@
$(MEMDUMP_TGT): $(MEMDUMP_TGT).c
$(UPLOAD_TGT): $(UPLOAD_TGT).c
$(TTYSAFE_TGT): $(TTYSAFE_TGT).c
$(PINGPONG_TGT): $(PINGPONG_TGT).c
$(BIN2C_TGT): $(BIN2C_TGT).c
$(EXEC_TGT): $(EXEC_TGT).c
2020-04-13 22:05:03 -04:00
$(BLKPACK_TGT): $(BLKPACK_TGT).c
$(BLKUNPACK_TGT): $(BLKUNPACK_TGT).c
$(BLKUP_TGT): $(BLKUP_TGT).c
$(TARGETS): $(OBJS)
2020-01-07 18:26:40 -05:00
$(CC) $(CFLAGS) $@.c $(OBJS) -o $@
.PHONY: clean
clean:
2019-12-09 22:01:22 -05:00
rm -f $(TARGETS) $(OBJS)