1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-26 04:28:05 +11:00
collapseos/tools/Makefile

23 lines
432 B
Makefile
Raw Normal View History

MEMDUMP_TGT = memdumpb
MEMDUMP_SRC = memdump.c
2019-12-10 14:01:22 +11:00
UPLOAD_TGT = uploadb
UPLOAD_SRC = upload.c
TARGETS = $(MEMDUMP_TGT) $(UPLOAD_TGT)
OBJS = common.o
all: $(TARGETS)
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
2019-12-10 14:01:22 +11:00
$(MEMDUMP_TGT): $(MEMDUMP_SRC) $(OBJS)
$(CC) $(CFLAGS) $(MEMDUMP_SRC) $(OBJS) -o $@
2019-12-10 14:01:22 +11:00
$(UPLOAD_TGT): $(UPLOAD_SRC) $(OBJS)
$(CC) $(CFLAGS) $(UPLOAD_SRC) $(OBJS) -o $@
.PHONY: clean
clean:
2019-12-10 14:01:22 +11:00
rm -f $(TARGETS) $(OBJS)