Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add missing data files from simplec type.

  • Loading branch information...
commit b0f5392772a2df5365301e20e6816c07ba048577 1 parent 3229f02
Ross Lagerwall authored
16 share/projmaker/Makefile.simple.template
View
@@ -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
8 share/projmaker/simpleprog.c.template
View
@@ -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;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.