mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 01:38:06 +11:00
20 lines
363 B
Makefile
20 lines
363 B
Makefile
MEMDUMP_TGT = memdump
|
|
BLKDUMP_TGT = blkdump
|
|
UPLOAD_TGT = upload
|
|
FONTCOMPILE_TGT = fontcompile
|
|
TARGETS = $(MEMDUMP_TGT) $(BLKDUMP_TGT) $(UPLOAD_TGT) $(FONTCOMPILE_TGT)
|
|
OBJS = common.o
|
|
|
|
all: $(TARGETS)
|
|
|
|
.SUFFIXES: .c .o
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
$(TARGETS): $@.c $(OBJS)
|
|
$(CC) $(CFLAGS) $@.c $(OBJS) -o $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(TARGETS) $(OBJS)
|