#------------------------------------------------------------------# # # # KOFIA executable Makefile # # Morgan Burke (TRIUMF) # # 1992-Sept-08 # # # # usage examples: # # # # % make # # % make photo # # % make FFLAGS=-g OBJECTS="dplot.o define.o" OUTPUT=test.exe # #------------------------------------------------------------------# #------------------------------------------------------------------# # this can be changed here, or defined on the command line. # (Say "make OUTPUT=progname", for example.) OUTPUT=adcgain.exe #------------------------------------------------------------------# # this is defined so that you can specify extra object files # on the command line. (Say "make OBJECTS=file.o", for example.) OBJECTS= adcgain.o fitgauss.o truncmean.o #------------------------------------------------------------------# # if you have your own version of a standard library, add its # directory to the top of this list LIBDIRS= \ -L$(CFM_MAIN) \ -L$(BRU_LIBRARY) \ -L$(FIOWA_DIR) \ -L$(GPLOT_DIR) \ -L$(YBOS_LIBRARY) \ -L$(KOFIA_LIBDIR) \ -L$(CERN_LIBRARY) #------------------------------------------------------------------# # add your object files and personal libraries to the end of this list KOFIA_OBJS = #------------------------------------------------------------------# # don't change these settings PLAIN_LIBS = \ -lmain PHOTO_LIBS = \ -lmain \ -lphoto #------------------------------------------------------------------# # add or delete the standard KOFIA libraries as you require them KOFIA_LIBS = \ -luser \ -lkumc \ -ltt \ -lbw \ -lutc \ -lpass1 \ -ltd \ -lccd \ -lunp \ -lcal #------------------------------------------------------------------# # add or delete the support libraries as you require them OTHER_LIBS = \ -lcfm$(LIB_SUFFIX) \ -lbru$(LIB_SUFFIX) \ -lfiowa$(LIB_SUFFIX) \ -lgplot$(LIB_SUFFIX) \ -lybos$(LIB_SUFFIX) \ -lpacklib \ -lmathlib \ -lkernlib \ -ldummy #------------------------------------------------------------------# # normal kofia, suitable for analysis jobs. # Say "make" or "make kofia". kofia : $(KOFIA_OBJS) $(OBJECTS) f77 -o $(OUTPUT) $(FFLAGS) $(LIBDIRS) -G 0 $(KOFIA_OBJS) $(OBJECTS) $(PLAIN_LIBS) $(KOFIA_LIBS) $(OTHER_LIBS) -lfpe #------------------------------------------------------------------# # plain kofia, no analysis code linked in. # Say "make plain". plain : $(KOFIA_OBJS) f77 -o $(OUTPUT) $(FFLAGS) $(LIBDIRS) -G 0 $(KOFIA_OBJS) $(PLAIN_LIBS) $(OTHER_LIBS) #------------------------------------------------------------------# # normal photo, suitable for non-X terminal types. # Say "make photo". photo : $(KOFIA_OBJS) $(OBJECTS) f77 -o $(OUTPUT) $(FFLAGS) $(LIBDIRS) -G 0 $(KOFIA_OBJS) $(OBJECTS) $(PHOTO_LIBS) $(KOFIA_LIBS) $(OTHER_LIBS) -lfpe -lX11 #------------------------------------------------------------------# # photo with Motif interface, suitable for interactive photo jobs. # Say "make xphoto". xphoto : $(KOFIA_OBJS) $(OBJECTS) ld -o $(OUTPUT) $(LIBDIRS) -G 0 -g0 -nocount /usr/lib/crt1.o -count $(KOFIA_OBJS) $(OBJECTS) $(PHOTO_LIBS) $(KOFIA_LIBS) -lxkofia $(OTHER_LIBS) -lfpe -lXm -lXt -lX11 -lPW -nocount -lF77 -lm -lU77 -lI77 -lisam -lmpc -lc /usr/lib/crtn.o #------------------------------------------------------------------# # all binaries all : -rm plain kofia photo xphoto make plain OUTPUT=plain make kofia OUTPUT=kofia make photo OUTPUT=photo make xphoto OUTPUT=xphoto #------------------------------------------------------------------# # debug binaries debug : make all mv plain plain.dbg mv kofia kofia.dbg mv photo photo.dbg mv xphoto xphoto.dbg #------------------------------------------------------------------# # standard rules and definitions include $(TRIUMF_ROOT)/make.std