1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-27 11:32:27 +01:00

Windows binaries and stuff.

This commit is contained in:
Kris Maglione
2011-09-24 14:34:54 -04:00
parent 0aa21f15c1
commit ef965d7681
8 changed files with 31 additions and 17 deletions

View File

@@ -17,8 +17,6 @@ CPPSRCS = \
subscriptLoader.cpp \
$(NULL)
GECKO_CONFIG_INCLUDE = -include mozilla-config.h
GECKO_DEFINES = -DMOZILLA_STRICT_API
GECKO_INCLUDES = -I$(ABI)/ \
@@ -41,6 +39,8 @@ endif
include $(ROOT)/config.mk
sinclude $(ROOT)/config.local.mk
CPPFLAGS += $(EXCPPFLAGS)
XPTS = $(XPIDLSRCS:%.idl=$(XPTDIR)%.xpt)
OBJS = $(CPPSRCS:%.cpp=$(OBJDIR)%.o)
HEADERS = $(XPIDLSRCS:%.idl=$(ABI)/%.h)
@@ -72,20 +72,20 @@ $(ABI)/%.h: %.idl
$(XPTDIR)%.xpt: %.idl
$(IDL_XPT) $@ $(GECKO_INCLUDES) $<
_CPPFLAGS = $(CPPFLAGS) $(CXXFLAGS) $(GECKO_CONFIG_INCLUDE) $(GECKO_DEFINES) $(GECKO_INCLUDES) $(DEFINES)
_CPPFLAGS = $(CPPFLAGS) $(CXXFLAGS) $(GECKO_DEFINES) $(GECKO_INCLUDES) $(DEFINES)
$(OBJDIR)%.o: %.cpp Makefile
$(CXX) -o $@ -c $(_CPPFLAGS) $<
$(CXX)$@ -c $(_CPPFLAGS) $<
.depend: $(CPPSRCS) Makefile
$(MKDEP) $(_CPPFLAGS) $(CPPSRCS) | $(SED) 's;^[^ ];$(OBJDIR)&;' >.depend
$(MODULE).so: $(OBJS)
$(CXX) -o $@ $(OBJS) $(LDFLAGS) $(GECKO_LDFLAGS)
$(LINK) -o $@ $(OBJS) $(LDFLAGS) $(GECKO_LDFLAGS)
chmod +x $@
$(MODULE).dll: $(OBJS)
$(CXX) -o $@ $(OBJS) $(GECKO_LDFLAGS)
$(LINK)$@ $(GECKO_LDFLAGS) $(OBJS)
$(XPTDIR) $(SODIR) $(OBJDIR):
mkdir -p $@