More portable way of writing this Makefile.

This commit is contained in:
mcafee%netscape.com 1999-02-10 00:49:34 +00:00
Родитель b974e26cea
Коммит 6b790408c8
1 изменённых файлов: 8 добавлений и 19 удалений

Просмотреть файл

@ -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