"Fossies" - the Fresh Open Source Software Archive

Member "yudit-3.0.7/swindow/Makefile" (4 Jun 2020, 1976 Bytes) of package /linux/misc/yudit-3.0.7.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 3.0.5_vs_3.0.7.

    1 include ../Makefile.conf
    2 
    3 MODULES=SAwt.o SGPrimitive.o SGEngine.o SWindow.o SColor.o \
    4  SImage.o SPen.o SCanvas.o SRedrawEvent.o \
    5  SFont.o SFontImpl.o SFontTTF.o SFontOTF.o SFontBDF.o SUniFont.o \
    6  SFontFB.o SFontNative.o SPostscript.o \
    7  SPrinter.o SAccelerator.o SScriptProcessor.o  \
    8  SSyntaxColors.o SFontCFF.o
    9 
   10 TARGETDIR=
   11 TARGETOBJS=
   12 
   13 ifeq ($(SWINDOWS),X11)
   14 TARGETDIR:=$(TARGETDIR) SX11
   15 ifeq ($(USE_X11),-DUSE_X11=1)
   16 TARGETOBJS:=sx11/SX11Impl.o sx11/SX11Window.o \
   17  sx11/SX11Color.o sx11/SX11Font.o \
   18  sx11/SXInputMethod.o sx11/SXEventHandler.o 
   19 endif
   20 CPPFLAGS:=$(CPPFLAGS) $(SWINDOW_FLAGS) 
   21 endif
   22 
   23 ifeq ($(SWINDOWS),WIN32)
   24 TARGETDIR:=$(TARGETDIR) swin32
   25 TARGETOBJS:=SWin32.o
   26 CPPFLAGS:=$(CPPFLAGS) 
   27 endif
   28 
   29 ifeq ($(SWINDOWS),OSX)
   30 TARGETDIR:=$(TARGETDIR) sosx
   31 TARGETOBJS:=sosx/SOSX.o \
   32   sosx/SCocoa.o \
   33   sosx/SCocoaInput.o \
   34   sosx/SKeyboard.o \
   35   sosx/SEventOSX.o
   36 CPPFLAGS:=$(CPPFLAGS) -DUSE_OSX=1
   37 endif
   38 
   39 ifeq ($(SPLATFORM),WINDOWS)
   40 OBJS=$(subst .o,.obj,$(MODULES)) $(subst .o,.obj,$(TARGETOBJS))
   41 #OBJS:=$(subst /,\,$(OBJS))
   42 TARGET=swindow.lib
   43 else
   44 OBJS=$(MODULES) $(TARGETOBJS)
   45 TARGET=libswindow.a
   46 endif
   47 
   48 
   49 all: $(TARGET)
   50 
   51 #
   52 # The cl drops its lib here
   53 #
   54 swindow.lib: $(OBJS)
   55 	$(AR)$@ $(subst swin32/,,$(OBJS))
   56 
   57 libswindow.a: $(OBJS)
   58 	$(AR) $@ $(OBJS)
   59 	$(RANLIB) $@      
   60 
   61 sx11/%.o:sx11/%.cpp
   62 	$(CXX) -c -o $@ $(HAVE_LOCALE) $(NEED_SET_IM_VALUES_PROTO) $(HAVE_SET_IM_VALUES) $(CPPFLAGS) $(patsubst %.o,%.cpp,$@)
   63 
   64 sosx/%.o:sosx/%.cpp
   65 	$(CXX) -c -o $@ $(CPPFLAGS) $(patsubst %.o,%.cpp,$@)
   66 
   67 #  -lobjc -lgnustep-base 
   68 sosx/%.o:sosx/%.mm
   69 	$(CXX) -c -o $@ $(CPPFLAGS) $(patsubst %.o,%.mm,$@)
   70 
   71 %.o:%.cpp
   72 	$(CXX) -c $(CPPFLAGS) $(subst .o,.cpp,$@)
   73 
   74 %.obj:%.cpp
   75 	$(CXX) -c $(CPPFLAGS) $(subst .obj,.cpp,$@)
   76 
   77 %.obj:swin32/%.cpp
   78 	$(CXX) -c $(CPPFLAGS) $(patsubst %.obj,swin32/%.cpp,$@)
   79 
   80 depend:
   81 	$(CXX) -M  $(CPPFLAGS)  $(patsubst %.o,%.cpp,$(OBJS)) > .depend
   82 
   83 clean: 
   84 	rm -f *.o  *.obj */*.o */*.obj $(TARGET)
   85 
   86 install:
   87 
   88 ifeq (.depend, $(wildcard .depend))
   89 include .depend
   90 endif