Organization, ignore binaries

This commit is contained in:
Dane Johnson 2021-12-22 10:08:37 -06:00
parent dc7c3666aa
commit 0accce69f1
8 changed files with 18 additions and 9 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
cyoa
cyoa.c
storybook
src/storybook

View File

@ -1,10 +1,7 @@
CC = g++
CFLAGS = -g
all: storybook
storybook: main.c cyoa.c
$(CC) $(CFLAGS) main.c -o storybook
cyoa.c: cyoa.leg
leg -o $@ $^
storybook:
$(MAKE) -C src storybook
cp src/storybook storybook
clean:
rm -f cyoa.c cyoa storybook
rm -f storybook
$(MAKE) -C src clean

10
src/Makefile Normal file
View File

@ -0,0 +1,10 @@
CC = g++
CFLAGS = -g
all: storybook
storybook: main.c cyoa.c
$(CC) $(CFLAGS) main.c -o storybook
cyoa.c: cyoa.leg
leg -o $@ $^
clean:
rm -f cyoa.c cyoa storybook

View File

BIN
storybook

Binary file not shown.