Makefile.in (1132B)
1 # 2 # This Source Code Form is subject to the terms of the Mozilla Public 3 # License, v. 2.0. If a copy of the MPL was not distributed with this 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 6 #! gmake 7 8 MOD_DEPTH = ../../.. 9 topsrcdir = @top_srcdir@ 10 srcdir = @srcdir@ 11 VPATH = @srcdir@ 12 13 include $(MOD_DEPTH)/config/autoconf.mk 14 15 include $(topsrcdir)/config/config.mk 16 17 CSRCS = mygetval.c mysetval.c 18 19 INCLUDES = -I$(dist_includedir) 20 21 OBJS = $(OBJDIR)/mygetval.$(OBJ_SUFFIX) \ 22 $(OBJDIR)/mysetval.$(OBJ_SUFFIX) 23 24 25 ifeq ($(OS_ARCH), WINNT) 26 RES=$(OBJDIR)/my.res 27 RESNAME=../../../pr/src/nspr.rc 28 endif 29 30 ifeq (,$(filter-out WINNT,$(OS_ARCH))) 31 IMPORT_LIBRARY = $(OBJDIR)/my.$(LIB_SUFFIX) 32 SHARED_LIBRARY = $(OBJDIR)/my.dll 33 TARGETS = $(SHARED_LIBRARY) $(IMPORT_LIBRARY) 34 else 35 ifdef MKSHLIB 36 SHARED_LIBRARY = $(OBJDIR)/libmy.$(DLL_SUFFIX) 37 endif 38 TARGETS = $(SHARED_LIBRARY) 39 endif 40 41 # 42 # To create a loadable module on Darwin, we must override 43 # -dynamiclib with -bundle. 44 # 45 ifeq ($(OS_ARCH),Darwin) 46 DSO_LDOPTS = -bundle 47 endif 48 49 include $(topsrcdir)/config/rules.mk 50 51 ifdef SHARED_LIBRARY 52 export:: $(TARGETS) 53 54 clean:: 55 rm -rf $(TARGETS) 56 endif