This commit is contained in:
Emmanuel BENOîT 2017-11-01 23:34:31 +01:00
parent 6b4bb99469
commit 90abab29a3
4 changed files with 21 additions and 1 deletions

View file

@ -41,11 +41,12 @@ DEMO = \
IMGUI_OBJS = $(addprefix $(OUTDIR)/, $(addsuffix .o, $(basename $(IMGUI))))
DEMO_OBJS = $(addprefix $(OUTDIR)/, $(addsuffix .o, $(basename $(DEMO))))
OBJS = $(IMGUI_OBJS) $(DEMO_OBJS)
LIBEBCL = $(OUTDIR)/libebcorelib.a
PCH=externals.hh.gch
DEMO_DEPS = $(DEMO_OBJS:$(OUTDIR)/%.o=$(OUTDIR)/%.d)
demo: $(OBJS)
demo: $(LIBEBCL) $(OBJS)
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o demo \
$(OBJS) $(LIBS)
@ -75,5 +76,8 @@ $(DEMO_OBJS): $(OUTDIR)/%.o: %.cc $(PCH) | outdir $(FILEDUMPS)
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -M -MF $(@:%.o=%.d) -MT $@ $<
$(LIBEBCL): ebcl-config
+make -C ebcl CONFIG=../ebcl-config
$(PCH): externals.hh
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<