Initial commit
This commit is contained in:
commit
3dd8217afe
|
@ -0,0 +1,2 @@
|
|||
obj/*
|
||||
obcb
|
|
@ -0,0 +1,16 @@
|
|||
CFLAGS +=
|
||||
LDFLAGS := -lm
|
||||
OBJECTS :=
|
||||
|
||||
obcb: lib
|
||||
$(CC) $(CFLAGS) $(OBJECTS) src/main.c $(LDFLAGS) -o obcb
|
||||
|
||||
all: obcb
|
||||
|
||||
lib: $(OBJECTS)
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJECTS) obcb
|
||||
|
||||
obj/%.o: src/%.c
|
||||
$(CC) $(CFLAGS) -c $^ -o $@
|
|
@ -0,0 +1,6 @@
|
|||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
int main(void) {
|
||||
printf("Hi!\n");
|
||||
}
|
Loading…
Reference in New Issue