fk98/Makefile

24 lines
365 B
Makefile
Raw Normal View History

CC := gcc
.ifdef DEBUG
CFLAGS := -DDEBUG -ggdb
.else
CFLAGS :=
.endif
.PHONY: all
all: config.o corrupt.o dosfs.o main.o
$(CC) $(CFLAGS) -o fk98 obj/config.o obj/corrupt.o obj/dosfs.o obj/main.o
.PHONY: clean
clean:
rm -r ${.CURDIR}/obj
rm ${.CURDIR}/fk98
.SUFFIXES: .o
.PATH: src
.c.o: obj
$(CC) $(CFLAGS) -o obj/${.TARGET} -c ${.IMPSRC}
obj:
mkdir obj