practically the whole thing up and running. I should make commits more often...
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
CC := gcc
|
||||
CFLAGS := -Wall -Werror
|
||||
LIBSPATH := -L/usr/lib/odweta/
|
||||
INCLUDEDIR := -I/usr/include/odweta/
|
||||
PATCH := -Wl,-rpath=/usr/lib/odweta/
|
||||
|
||||
.PHONY: build run
|
||||
|
||||
default: build
|
||||
|
||||
build: src/main.c # add files to compile here
|
||||
@$(CC) $(CFLAGS) -o ./build/$@ $^ $(PATCH) $(INCLUDEDIR) $(LIBSPATH) $(LIBS)
|
||||
|
||||
run:
|
||||
@./build/main
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# example_project
|
||||
|
||||
Your project description goes here
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
printf("Hello, world!\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user