diff options
Diffstat (limited to 'src/tools/makeinitrd/Makefile')
-rw-r--r-- | src/tools/makeinitrd/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tools/makeinitrd/Makefile b/src/tools/makeinitrd/Makefile new file mode 100644 index 0000000..3ac993c --- /dev/null +++ b/src/tools/makeinitrd/Makefile @@ -0,0 +1,30 @@ +.PHONY: clean, mrproper + +CC = gcc +CXX = g++ +LD = gcc +LDFLAGS = -lstdc++ +CFLAGS = +CXXFLAGS = + +OutFile = makeinitrd +Objects = main.o + +all: $(OutFile) + +rebuild: mrproper all + +$(OutFile): $(Objects) + $(LD) -o $(OutFile) $(LDFLAGS) $^ + +%.o: %.c + $(CC) -c $< -o $@ $(CFLAGS) + +%.o: %.cpp + $(CXX) -c $< -o $@ $(CXXFLAGS) + +clean: + rm -rf *.o + +mrproper: clean + rm -rf $(OutFile) |