############################################################ # # Makefile # Creation date : Nov 14 2000 # Author : Y.Nakaune # include ../depend SRC = buf.o tmc.o adc.o veto.o cfg.o tgc_cfg.o PSEUDO_SRC = buf.c pseudo.o cfg.o tgc_cfg.o INC = $(INCCFG) buf.h CFLAGS = -O2 -Wall -g .c.o: @echo "Compiling $<" @$(CC) -c $(CFLAGS) $< $(VMEINC) $(CAMINC) -I$(INCDIR) @echo '...done' ALL: BUF BUF: $(BIN)/BUF $(BIN)/BUF: $(SRC) $(INC) $(VMELIBRARY) $(CAMLIBRARY) @echo "Now make $@" @$(CC) $(CFLAGS) -o $@ $(SRC) $(LIBLOCAL) $(VMELIB) $(CAMLIB) -I$(INCDIR) @echo '..Compile done!' # @echo 'Enter root password' # @su -c 'chown root $@; chmod 4775 $@' Pseudo: BUF_pseudo BUF_pseudo: $(BIN)/BUF_pseudo $(BIN)/BUF_pseudo: $(INCDIR)/buf.h $(PSEUDO_SRC) @echo "Now make $@" @$(CC) $(CFLAGS) -o $@ $(PSEUDO_SRC) -I$(INCDIR) @echo '..Compile done!' $(SRC) : $(INC) tmc.o: tmc.h adc.o: adc.h veto.o: intreg.h pseudo.o: $(INC) clean: @echo 'Now clean up' @rm -f *.o core