mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 14:18:06 +11:00
c5116b39ae
It seems that my little "@.c" trick only worked in BSD make...
29 lines
644 B
Makefile
29 lines
644 B
Makefile
MEMDUMP_TGT = memdump
|
|
BLKDUMP_TGT = blkdump
|
|
UPLOAD_TGT = upload
|
|
FONTCOMPILE_TGT = fontcompile
|
|
TTYSAFE_TGT = ttysafe
|
|
PINGPONG_TGT = pingpong
|
|
TARGETS = $(MEMDUMP_TGT) $(BLKDUMP_TGT) $(UPLOAD_TGT) $(FONTCOMPILE_TGT) \
|
|
$(TTYSAFE_TGT) $(PINGPONG_TGT)
|
|
OBJS = common.o
|
|
|
|
all: $(TARGETS)
|
|
|
|
.SUFFIXES: .c .o
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
$(MEMDUMP_TGT): $(MEMDUMP_TGT).c
|
|
$(BLKDUMP_TGT): $(BLKDUMP_TGT).c
|
|
$(UPLOAD_TGT): $(UPLOAD_TGT).c
|
|
$(FONTCOMPILE_TGT): $(FONTCOMPILE_TGT).c
|
|
$(TTYSAFE_TGT): $(TTYSAFE_TGT).c
|
|
$(PINGPONG_TGT): $(PINGPONG_TGT).c
|
|
$(TARGETS): $(OBJS)
|
|
$(CC) $(CFLAGS) $@.c $(OBJS) -o $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(TARGETS) $(OBJS)
|