"Fossies" - the Fresh Open Source Software Archive

Member "wp2latex-3.82/instaler/makefile.gen" (16 Oct 2011, 1554 Bytes) of package /linux/misc/wp2latex-3.82.zip:


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.

    1 GCC=gcc
    2 FLAGS=-I ../sources.cc/atoms/include/
    3 
    4 
    5 #### OS autodetection part of makefile ####
    6 
    7 # for Linux - debian
    8 ifeq ($(OSTYPE),linux-gnu)
    9 LIBS=-lm
   10 GCC = g++
   11 endif
   12 
   13 # for Linux - Slackware
   14 ifeq ($(OSTYPE),linux)
   15 LIBS+= -lstdc++
   16 endif
   17 
   18 # for Linux - Red Hat
   19 ifeq ($(OSTYPE),Linux)
   20 LIBS+= -lstdc++
   21 endif
   22 #end of Linux
   23 
   24 # for sun
   25 ifeq ($(OSTYPE),solaris)
   26 LIBS=-lm
   27 endif
   28 
   29 ifeq ($(OSTYPE),sunos4)
   30 LIBS=-lm -lstdc++
   31 endif
   32 #end of sun
   33 
   34 #for OS/2
   35 ifneq "$(OS2_SHELL)" ""
   36 LIBS=-s -lstdcpp
   37 endif
   38 
   39 # for aix
   40 ifeq ($(OSTYPE),aix)
   41 LIBS=-lm
   42 endif
   43 #end of aix
   44 
   45 
   46 #Nothing is an indentifier for DOS? Too bad.
   47 ifeq ($(OSTYPE),)
   48 ifeq ($(HOSTTYPE),iris4d)
   49 LIBS=-lm
   50 else
   51 OSTYPE = dos
   52 endif
   53 endif
   54 
   55 
   56 
   57 #library components
   58 LIBS+=../sources.cc/atoms/libatoms.a
   59 
   60 
   61 
   62 .SUFFIXES: .c .cc $(OBJ) .exe
   63 
   64 .c$(OBJ):
   65 	$(GCC) $(FLAGS) $(DEBUG) -c $*.c $(ERROR) -o $*$(OBJ) $(GETTEXT)
   66 
   67 .cc$(OBJ):
   68 	$(GCC) $(FLAGS) $(DEBUG) -c $*.cc $(ERROR) -o $*$(OBJ) $(GETTEXT) 
   69 
   70 $(OBJ).exe:
   71 	$(GCC) $*$(OBJ) $(LIBS) $(ERROR)
   72 
   73 
   74 menucfg.exe: menucfg.cc ../sources.cc/atoms/libatoms.a
   75 	$(GCC) $(FLAGS) -o menucfg.exe menucfg.cc $(LIBS)
   76 
   77 inst_gt.exe: inst_gt.cc ../sources.cc/atoms/libatoms.a
   78 	$(GCC) $(FLAGS) -o inst_gt.exe inst_gt.cc ../sources.cc/wp2lfuti.cc $(LIBS)
   79 
   80 
   81 ../sources.cc/atoms/libatoms.a:
   82 	make -C ../sources.cc/atoms libatoms.a
   83 
   84 
   85 clean:
   86 	rm -f igt.bat *.exe *.com *.o *.obj *.bak *.bkp *.map *.rpo *.~?? core *.swp *.ilk *.tfa *.lk1 *.mk1 *.mk *.err *.pch *.ncb *.opt *.plg *.out *.cv4
   87 
   88 distclean: clean
   89 	rm makefile
   90 	cp makefile.gen makefile
   91 
   92 generic:
   93 	rm makefile
   94 	cp makefile.gen makefile
   95