diff --git a/.gitignore b/.gitignore index e447d54..ed93eb3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -build -temp +cache vgcore.* -out \ No newline at end of file +libnoja.a +noja \ No newline at end of file diff --git a/assembler.o b/assembler.o deleted file mode 100644 index d5bebef..0000000 Binary files a/assembler.o and /dev/null differ diff --git a/libnoja.a b/libnoja.a index c1c9a62..78aa350 100644 Binary files a/libnoja.a and b/libnoja.a differ diff --git a/makefile b/makefile index 83f6c44..3af0f15 100644 --- a/makefile +++ b/makefile @@ -27,6 +27,11 @@ CLI_SUBDIR = cli LIB_FNAME = libnoja.a CLI_FNAME = noja +# Where the build programs will be moved when +# installation occurres. +CLI_INSTALLDIR = /bin +LIB_INSTALLDIR = /usr/local + # Default programs CC = gcc AR = ar @@ -81,6 +86,10 @@ $(LIB): $(LIB_OFILES) $(CLI): $(CLI_OFILES) $(LIB) $(CC) $^ -o $@ $(LFLAGS) +install: $(LIB) $(CLI) + sudo cp $(LIB) $(LIB_INSTALLDIR) + sudo cp $(CLI) $(CLI_INSTALLDIR) + clean: rm -rf $(OBJDIR) rm -f $(LIB) diff --git a/noja b/noja deleted file mode 100755 index db82667..0000000 Binary files a/noja and /dev/null differ