From 7d5a38ada35ac196919c26675f211adb995b84ae Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Fri, 18 May 2012 14:47:44 +0200 Subject: Added initrd. Status: VFS support, totally useless shell. --- src/tools/makeinitrd/Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/tools/makeinitrd/Makefile (limited to 'src/tools/makeinitrd/Makefile') 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) -- cgit v1.2.3