📄 makefile.linux
字号:
########################################################################################## # SCCS ID : "@(#)Makefile 1.12 01/07/05"## Copyright : DEIMO Space S.L.# Project : REMASE## Module : Makefile# Purpose : It is used to:# o Compile and link ppf_visibility_c.c in SOLARIS# o Generate example program for ppf_visibility CFI## History +------------------------------------------------------------------------+# | Version | Date | Name | Change |# |---------|----------|--------------|------------------------------------|# | 2.1 | 05/12/97 | GMV, S.A. | First release |# | 2.2 | 18/05/98 | GMV, S.A. | Second release |# | 2.3 | 13/10/98 | GMV, S.A. | Third release |# | 2.4 | 25/05/99 | GMV, S.A. | Fourth release |# | 2.5 | 14/04/00 | GMV, S.A. | Fifth release |# | 2.6 | 22/06/01 | GMV, S.A. | Sixth release |# | 2.7 | 31/07/01 | GMV, S.A. | Seventh release |# | 2.8 | 22/10/01 | DEIMOS Space | Eigth release |# | 3.0 | 18/01/02 | DEIMOS Space | Ninth release |# | 3.1 | 25/11/02 | DEIMOS Space | Tenth release |# | 3.2 | 26/05/03 | DEIMOS Space | Eleventh release |# | 3.3 | 13/12/04 | DEIMOS Space | Twelfth release |# | 3.3.1 | 15/02/05 | ESA/EOP-PES | Thirteenth release |# | 3.4 | 17/05/05 | DEIMOS Space | Forteenth release |# +------------------------------------------------------------------------+# ########################################################################################### Customization Area## set OS to your operating system (LINUX)OS = LINUX# set CC to your compiler (gcc for LINUX)CC = gcc -ansi -fno-math-errno# set CFI_INCL to the directory where already installed CFI include files are storedCFI_INCL = ../../../include# set CFI_LIBS to the directory where already installed CFI library files are storedCFI_LIBS = ../../../lib/$(OS)# optionally select dynamic linking CFI libraries# DYN = _soDYN =## End of Customization Area##########################################################################################CFI = ppf_visibilityLANGUAGE = cEXT = _c#------------------------------------------------------------------------------# Set silent mode#------------------------------------------------------------------------------.SILENT :#------------------------------------------------------------------------------# Bash shell#------------------------------------------------------------------------------SHELL = /bin/bash#------------------------------------------------------------------------------# Compiler flags# --------------## I = header files directories# D$(OS) = conditional code for Linux##------------------------------------------------------------------------------CFLAGS = \ -I../../include \ -I$(CFI_INCL) \ -D$(OS)#------------------------------------------------------------------------------# Linker tool, flags and libraries (Sparc cc 3.0.1)#------------------------------------------------------------------------------LIBS_DIR = \ -L../../lib/$(OS) \ -L$(CFI_LIBS) LIBS = \ -l$(CFI)$(DYN) \ -lppf_pointing$(DYN) -lppf_orbit$(DYN) -lppf_lib$(DYN) \ -lm -lcEXAMPLE = $(CFI)$(EXT)#------------------------------------------------------------------------------# Makefile default target#------------------------------------------------------------------------------default : example runexample: echo "--------------------" echo "$(CFI): ... creating the example" echo "--------------------" $(CC) $(CFLAGS) $(EXAMPLE).$(LANGUAGE) $(LIBS_DIR) $(LIBS) -o $(EXAMPLE)run: echo "--------------------" echo "$(CFI): ... running the example (you may want to redirect stderr)" echo "--------------------" sleep 1; echo "... 3 ..." sleep 1; echo "... 2 ..." sleep 1; echo "... 1 ..." sleep 1; echo "--- GO ---" sleep 1 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../../lib/$(OS):$(CFI_LIBS); ./$(EXAMPLE)clean: \rm -f *.o *.out core *%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -