Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'build/org.eclipse.cdt.make.core/templates')
-rw-r--r--build/org.eclipse.cdt.make.core/templates/simple/Makefile12
-rw-r--r--build/org.eclipse.cdt.make.core/templates/simple/main.cpp4
-rw-r--r--build/org.eclipse.cdt.make.core/templates/simple/manifest.xml7
3 files changed, 23 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)
diff --git a/build/org.eclipse.cdt.make.core/templates/simple/main.cpp b/build/org.eclipse.cdt.make.core/templates/simple/main.cpp
new file mode 100644
index 00000000000..c493b4a5566
--- /dev/null
+++ b/build/org.eclipse.cdt.make.core/templates/simple/main.cpp
@@ -0,0 +1,4 @@
+
+int main(int argc, char **argv) {
+ return 0;
+}
diff --git a/build/org.eclipse.cdt.make.core/templates/simple/manifest.xml b/build/org.eclipse.cdt.make.core/templates/simple/manifest.xml
new file mode 100644
index 00000000000..22491fe313a
--- /dev/null
+++ b/build/org.eclipse.cdt.make.core/templates/simple/manifest.xml
@@ -0,0 +1,7 @@
+<templateManifest>
+ <file src="/templates/simple/Makefile"
+ dest="/${projectName}/Makefile"/>
+ <file src="/templates/simple/main.cpp"
+ dest="/${projectName}/${projectName}.cpp"
+ open="true"/>
+</templateManifest> \ No newline at end of file

Back to the top