mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 17:38:05 +11:00
888395d496
ref #80
28 lines
577 B
Makefile
28 lines
577 B
Makefile
MEMDUMP_TGT = memdump
|
|
MEMDUMP_SRC = memdump.c
|
|
BLKDUMP_TGT = blkdump
|
|
BLKDUMP_SRC = blkdump.c
|
|
UPLOAD_TGT = upload
|
|
UPLOAD_SRC = upload.c
|
|
TARGETS = $(MEMDUMP_TGT) $(BLKDUMP_TGT) $(UPLOAD_TGT)
|
|
OBJS = common.o
|
|
|
|
all: $(TARGETS)
|
|
|
|
.SUFFIXES: .c .o
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
$(MEMDUMP_TGT): $(MEMDUMP_SRC) $(OBJS)
|
|
$(CC) $(CFLAGS) $(MEMDUMP_SRC) $(OBJS) -o $@
|
|
|
|
$(BLKDUMP_TGT): $(BLKDUMP_SRC) $(OBJS)
|
|
$(CC) $(CFLAGS) $(BLKDUMP_SRC) $(OBJS) -o $@
|
|
|
|
$(UPLOAD_TGT): $(UPLOAD_SRC) $(OBJS)
|
|
$(CC) $(CFLAGS) $(UPLOAD_SRC) $(OBJS) -o $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(TARGETS) $(OBJS)
|