osdev/tools/generator/Makefile

21 lines
295 B
Makefile

CXX = gcc
SOURCES = $(wildcard *.c)
BINARIES = $(SOURCES:%.c=%.c.o)
all: compile
compile: $(BINARIES)
$(CXX) -g -o ./initrd $^
%.c.o: %.c
$(CXX) -g -I../../include -std=gnu99 -pedantic -c -o $@ $<
.PHONY: clean initrd
clean:
rm -f *.o initrd
initrd: all
./initrd file1.txt file2.txt