# # Change the value of the MX_ARCH variable below to match the platform you # are compiling the MX MarCCD interface for. The available platforms are: # # linux - Compile for Linux # macosx - Compile for MacOS X # solaris - Compile for Solaris with the Sunstudio compiler # solaris-gcc - Compile for Solaris with GCC # win32 - Compile for Win32 using Visual C++ # # To build the MX MarCCD interface, you must first build the MX library # itself. Next, set the variables MX_ARCH and LIBMX below. Then do a # "make depend" and finally a "make". # MX_ARCH = linux MX_INSTALL_DIR = /opt/mx LIBMX = $(LIBMX_STATIC_LINUX) LIBMX_DIR = ../mx/libMx LIBMX_INC = -I$(LIBMX_DIR) LIBMX_SHARED = -L$(LIBMX_DIR) -lMx # # LIBMX_STATIC_SOLARIS can also be used for the 'solaris-gcc' target. # LIBMX_STATIC_LINUX = $(LIBMX_DIR)/libMx.a -lpthread -lrt -ldl -lm LIBMX_STATIC_MACOSX = $(LIBMX_DIR)/libMx.a LIBMX_STATIC_SOLARIS = $(LIBMX_DIR)/libMx.a -lm -lnsl -lsocket -lposix4 -lmalloc MAKEHEAD = $(LIBMX_DIR)/Makehead.$(MX_ARCH) all: build include $(MAKEHEAD) GONIOSTAT_NAME = goniostat$(DOTEXE) build: $(GONIOSTAT_NAME) clean: -$(RM) *.$(OBJ) *.ilk *.pdb -$(RM) $(GONIOSTAT_NAME) distclean: clean depend: install: goniostat cp goniostat $(MX_DIR)/bin goniostat.$(OBJ): goniostat.c $(CC) $(CFLAGS) $(LIBMX_INC) -c goniostat.c # # This version is for everyone else. # $(GONIOSTAT_NAME): goniostat.$(OBJ) $(CC) -g -o goniostat goniostat.o $(LIBMX) $(EXTRA_LIBRARIES) ## ## This version is for Win32. ## #$(GONIOSTAT_NAME): goniostat.$(OBJ) # link /debug /nologo /out:$(GONIOSTAT_NAME) /nodefaultlib:libc \ # goniostat.obj ..\\\\mx\\\\libMx\\\\libMx.lib $(WIN32_LIBS) # # # For VC2005 or later, embed the manifest in the executable. # # if test -f $(GONIOSTAT_NAME).manifest; then \ # $(MSMANIFEST_TOOL) -nologo \ # -outputresource:$(GONIOSTAT_NAME)\;1 \ # -manifest $(GONIOSTAT_NAME).manifest \ # $(EXTRA_MANIFESTS) ; \ # rm -f $(GONIOSTAT_NAME).manifest; \ # fi #