Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'build/org.eclipse.cdt.make.core/templates/simple/Makefile')
-rw-r--r--build/org.eclipse.cdt.make.core/templates/simple/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.make.core/templates/simple/Makefile b/build/org.eclipse.cdt.make.core/templates/simple/Makefile
new file mode 100644
index 00000000000..02622849e17
--- /dev/null
+++ b/build/org.eclipse.cdt.make.core/templates/simple/Makefile
@@ -0,0 +1,12 @@
+OBJS = ${projectName}.o
+
+all: ${projectName}
+
+${projectName}: $(OBJS)
+ $(CC) -o $@ $^
+
+%.o: ../../%.cpp
+ $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
+
+clean:
+ rm -fr ${projectName} $(OBJS)

Back to the top