diff options
author | Paul Duncan <pabs@pablotron.org> | 2018-06-21 15:55:20 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2018-06-21 15:55:20 -0400 |
commit | 827be7304a4c40b6465951e55195caab1d666f86 (patch) | |
tree | fe98390a763bb63a003e120595be4ea82fda8bd0 /Makefile | |
parent | 85869faeefcee88b87239b5def08ca542f9d94eb (diff) | |
download | gb-c-827be7304a4c40b6465951e55195caab1d666f86.tar.bz2 gb-c-827be7304a4c40b6465951e55195caab1d666f86.zip |
add test_execute_steps(), Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..79cc3c5 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +OBJS=gb.o test.o lodepng.o +CFLAGS=-W -Wall -pedantic -Werror -Wextra -std=c11 -O3 +APP=./test + +.PHONY=all clean test + +all: $(APP) + +gb.c: ops.yaml + ./gen.rb > gb.c + +$(APP): $(OBJS) + $(CC) -o $(APP) $(OBJS) + +%.o: %.c gb.h + $(CC) -c $(CFLAGS) $< + +clean: + $(RM) $(OBJS) $(APP) |