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
|
*.o
|
||||||
|
*.a
|
||||||
storybook-cli
|
storybook-cli
|
||||||
src/cli/storybook-cli
|
src/cli/storybook-cli
|
||||||
src/base/cyoa.cpp
|
src/base/cyoa.cpp
|
@ -1,7 +1,9 @@
|
|||||||
CXXFLAGS = -g
|
CXXFLAGS = -g
|
||||||
OBJS = cyoa.o storybook.o
|
OBJS = cyoa.o storybook.o
|
||||||
|
|
||||||
all: $(OBJS)
|
all: libstorybook.a
|
||||||
|
libstorybook.a: $(OBJS)
|
||||||
|
ar rcs $@ $^
|
||||||
cyoa.cpp: cyoa.leg
|
cyoa.cpp: cyoa.leg
|
||||||
leg -o $@ $^
|
leg -o $@ $^
|
||||||
clean:
|
clean:
|
||||||
|
@ -2,4 +2,4 @@ CXXFLAGS = -g -L../base/
|
|||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
all: storybook-cli
|
all: storybook-cli
|
||||||
storybook-cli: storybook_cli.cpp
|
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