Permalink
Browse files

Add missing data files from simplec type.

  • Loading branch information...
1 parent 3229f02 commit b0f5392772a2df5365301e20e6816c07ba048577 @rosslagerwall committed May 27, 2012
Showing with 24 additions and 0 deletions.
  1. +16 −0 share/projmaker/Makefile.simple.template
  2. +8 −0 share/projmaker/simpleprog.c.template
View
16 share/projmaker/Makefile.simple.template
@@ -0,0 +1,16 @@
+CC=gcc
+CFLAGS=-c -Wall -g -O2 -std=gnu99
+LDFLAGS=
+${exec_name}_SOURCES=${exec_name}.c
+${exec_name}_OBJECTS=$$(${exec_name}_SOURCES:.c=.o)
+
+all: $exec_name
+
+${exec_name}: $$(${exec_name}_OBJECTS)
+ $$(CC) $$(LDFLAGS) $$(${exec_name}_OBJECTS) -o $$@
+
+.c.o:
+ $$(CC) $$(CFLAGS) $$< -o $$@
+
+clean:
+ rm -f *.o $exec_name
View
8 share/projmaker/simpleprog.c.template
@@ -0,0 +1,8 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+
+int main(int argc, char **argv) {
+ printf("hello world\n");
+ return 0;
+}

0 comments on commit b0f5392

Please sign in to comment.