X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=Makefile;h=65a652dff13337c2d7fc8d88d572d65c3fb506c6;hp=3552fe44bad0a63d4f52f09eeb2ddc7d56884f69;hb=848ee1720c11f88e54e38f0a9c51f70f7ca8dd77;hpb=7fc0fc6a973713c4082181aceb3c03d99ef3297f diff --git a/Makefile b/Makefile index 3552fe4..65a652d 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ all: cubemap %.pb.o: %.pb.cc $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< cubemap: $(OBJS) - $(CXX) -o cubemap $(OBJS) $(LDLIBS) + $(CXX) -o cubemap $(OBJS) $(LDLIBS) $(LDFLAGS) DEPS=$(OBJS:.o=.d) -include $(DEPS) @@ -25,7 +25,7 @@ DEPS=$(OBJS:.o=.d) clean: $(RM) cubemap $(OBJS) $(DEPS) state.pb.h state.pb.cc -PREFIX=/usr +PREFIX=/usr/local install: $(INSTALL) -m 755 -o root -g root -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)/etc $(DESTDIR)/var/lib/cubemap $(DESTDIR)/var/log/cubemap $(INSTALL) -m 755 -o root -g root cubemap $(DESTDIR)$(PREFIX)/bin/cubemap