summaryrefslogtreecommitdiff
path: root/src/tools/makeinitrd/Makefile
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-18 14:47:44 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-18 14:47:44 +0200
commit7d5a38ada35ac196919c26675f211adb995b84ae (patch)
tree60d9733a1ca44ff873dbac610ea367863d5c648b /src/tools/makeinitrd/Makefile
parent1ecb3fb821f49450ba4b08ad7d7a23d3acb75c47 (diff)
downloadTCE-7d5a38ada35ac196919c26675f211adb995b84ae.tar.gz
TCE-7d5a38ada35ac196919c26675f211adb995b84ae.zip
Added initrd. Status: VFS support, totally useless shell.
Diffstat (limited to 'src/tools/makeinitrd/Makefile')
-rw-r--r--src/tools/makeinitrd/Makefile30
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)