зеркало из https://github.com/mozilla/gecko-dev.git
More portable way of writing this Makefile.
This commit is contained in:
Родитель
b974e26cea
Коммит
6b790408c8
|
@ -23,28 +23,17 @@ include $(DEPTH)/config/autoconf.mk
|
||||||
|
|
||||||
CPPSRCS = UnicharSelfTest.cpp
|
CPPSRCS = UnicharSelfTest.cpp
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/config.mk
|
||||||
|
|
||||||
#DEFINES += -DUSE_NSREG
|
#DEFINES += -DUSE_NSREG
|
||||||
INCLUDES += -I$(srcdir)/../public -I$(DIST)/include
|
INCLUDES += -I$(srcdir)/../public -I$(DIST)/include
|
||||||
|
|
||||||
EX_LIBS = $(DIST)/lib/libxpcom.$(LIB_SUFFIX) \
|
LIBS = \
|
||||||
$(DIST)/lib/libreg.$(LIB_SUFFIX) \
|
-lxpcom \
|
||||||
$(NULL)
|
-lreg \
|
||||||
|
$(NSPR_LIBS) \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
PROGS = $(addprefix $(OBJDIR)/, $(CPPSRCS:.cpp=))
|
PROGRAM = UnicharSelfTest
|
||||||
|
|
||||||
TARGETS = $(PROGS)
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
ifeq ($(OS_ARCH),Rhapsody)
|
|
||||||
$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS)
|
|
||||||
@$(MAKE_OBJDIR)
|
|
||||||
$(CC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(NSPR_LIBS) $(OS_LIBS)
|
|
||||||
else
|
|
||||||
$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS)
|
|
||||||
@$(MAKE_OBJDIR)
|
|
||||||
$(CCC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(NSPR_LIBS) $(OS_LIBS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
install:: $(PROGS)
|
|
||||||
$(INSTALL) $(PROGS) $(DIST)/bin
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче