Some Makefile fixes and .gitignore update.
This commit is contained in:
parent
6a7add3e56
commit
13242d57b6
3 changed files with 6 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,2 +1,6 @@
|
||||||
|
src/*.o
|
||||||
tmp/
|
tmp/
|
||||||
|
fun
|
||||||
|
fun_test
|
||||||
|
test_oppcodes
|
||||||
test.*
|
test.*
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -11,9 +11,9 @@ TEST_BIN = $(TEST_SRC:src/%.c=%)
|
||||||
.PHONY: all test clean
|
.PHONY: all test clean
|
||||||
|
|
||||||
# Default: build main demo
|
# Default: build main demo
|
||||||
all: main
|
all: fun
|
||||||
|
|
||||||
main: $(OBJ) src/main.c
|
fun: $(OBJ) src/fun.c
|
||||||
$(CC) $(CFLAGS) -o $@ $^
|
$(CC) $(CFLAGS) -o $@ $^
|
||||||
|
|
||||||
# Compile object files
|
# Compile object files
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue