Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add missing data files from simplec type.

  • Loading branch information...
commit b0f5392772a2df5365301e20e6816c07ba048577 1 parent 3229f02
Ross Lagerwall authored
16 share/projmaker/Makefile.simple.template
... ... @@ -0,0 +1,16 @@
  1 +CC=gcc
  2 +CFLAGS=-c -Wall -g -O2 -std=gnu99
  3 +LDFLAGS=
  4 +${exec_name}_SOURCES=${exec_name}.c
  5 +${exec_name}_OBJECTS=$$(${exec_name}_SOURCES:.c=.o)
  6 +
  7 +all: $exec_name
  8 +
  9 +${exec_name}: $$(${exec_name}_OBJECTS)
  10 + $$(CC) $$(LDFLAGS) $$(${exec_name}_OBJECTS) -o $$@
  11 +
  12 +.c.o:
  13 + $$(CC) $$(CFLAGS) $$< -o $$@
  14 +
  15 +clean:
  16 + rm -f *.o $exec_name
8 share/projmaker/simpleprog.c.template
... ... @@ -0,0 +1,8 @@
  1 +#include <stdlib.h>
  2 +#include <stdio.h>
  3 +#include <unistd.h>
  4 +
  5 +int main(int argc, char **argv) {
  6 + printf("hello world\n");
  7 + return 0;
  8 +}

0 comments on commit b0f5392

Please sign in to comment.
Something went wrong with that request. Please try again.