Compile base to static library
This commit is contained in:
parent
ae1266ccc9
commit
3e89adce77
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
*.o
|
||||
*.a
|
||||
storybook-cli
|
||||
src/cli/storybook-cli
|
||||
src/base/cyoa.cpp
|
@ -1,7 +1,9 @@
|
||||
CXXFLAGS = -g
|
||||
OBJS = cyoa.o storybook.o
|
||||
|
||||
all: $(OBJS)
|
||||
all: libstorybook.a
|
||||
libstorybook.a: $(OBJS)
|
||||
ar rcs $@ $^
|
||||
cyoa.cpp: cyoa.leg
|
||||
leg -o $@ $^
|
||||
clean:
|
||||
|
@ -2,4 +2,4 @@ CXXFLAGS = -g -L../base/
|
||||
.PHONY: all clean
|
||||
all: storybook-cli
|
||||
storybook-cli: storybook_cli.cpp
|
||||
$(CXX) $(CXXFLAGS) -o $@ $^ ../base/storybook.o ../base/cyoa.o
|
||||
$(CXX) $(CXXFLAGS) -o $@ $^ -lstorybook
|
||||
|
Loading…
Reference in New Issue
Block a user