diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-06-16 14:40:57 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-06-16 14:40:57 -0700 |
commit | 13fc200218f96be717ed38e6a0c6f72a2c526730 (patch) | |
tree | a5903e95cd843bc77bfd7380a21d6013ddc5a39e | |
parent | 85c38f38778d3c8ab6a8dc9517a763e010c4dc6d (diff) |
Define entry point
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | core.c | 4 | ||||
-rw-r--r-- | gitrolex.c | 5 |
3 files changed, 12 insertions, 5 deletions
@@ -2,15 +2,15 @@ # http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/makefile.4 CC=gcc CFLAGS=-I. -I./segfault-suite -pthread -Wall -DEPS=segfault-suite/test-lib.h -OBJ=segfault-suite/test-lib.o -MAIN_OBJ=main.o +DEPS=segfault-suite/test-lib.h core.h +OBJ=segfault-suite/test-lib.o core.o +MAIN_OBJ=gitrolex.o TEST_OBJ=core.test.o %.o: %.c $(DEPS) $(CC) -c -o $@ $< $(CFLAGS) -main: $(OBJ) $(MAIN_OBJ) +gitrolex: $(OBJ) $(MAIN_OBJ) $(CC) -o $@ $^ $(CFLAGS) test-bin: $(OBJ) $(TEST_OBJ) @@ -1,6 +1,8 @@ - #include "core.h" #include <stdlib.h> #include <stdio.h> +int gitrolex_core(int argc, const char* argv[]) { + printf("Usage ./gitrolex status | export | track <branch-name>\n"); +} diff --git a/gitrolex.c b/gitrolex.c new file mode 100644 index 0000000..6c68c89 --- /dev/null +++ b/gitrolex.c @@ -0,0 +1,5 @@ +#include "core.h" + +int main(int argc, const char* argv[]) { + return gitrolex_core(); +} |