fp@359: #------------------------------------------------------------------------------ fp@359: # fp@359: # Makefile fp@359: # fp@359: # IgH EtherCAT master module fp@359: # fp@359: # $Id$ fp@359: # fp@359: # Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH fp@359: # fp@359: # This file is part of the IgH EtherCAT Master. fp@359: # fp@359: # The IgH EtherCAT Master is free software; you can redistribute it fp@359: # and/or modify it under the terms of the GNU General Public License fp@359: # as published by the Free Software Foundation; either version 2 of the fp@359: # License, or (at your option) any later version. fp@359: # fp@359: # The IgH EtherCAT Master is distributed in the hope that it will be fp@359: # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of fp@359: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the fp@359: # GNU General Public License for more details. fp@359: # fp@359: # You should have received a copy of the GNU General Public License fp@359: # along with the IgH EtherCAT Master; if not, write to the Free Software fp@359: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@359: # fp@359: # The right to use EtherCAT Technology is granted and comes free of fp@359: # charge under condition of compatibility of product made by fp@359: # Licensee. People intending to distribute/sell products based on the fp@359: # code, have to sign an agreement to guarantee that products using fp@359: # software based on IgH EtherCAT master stay compatible with the actual fp@359: # EtherCAT specification (which are released themselves as an open fp@359: # standard) as the (only) precondition to have the right to use EtherCAT fp@359: # Technology, IP and trade marks. fp@359: # fp@359: #------------------------------------------------------------------------------ fp@359: fp@359: INC := $(shell xml2-config --cflags) fp@359: LIB := $(shell xml2-config --libs) fp@359: EXE := ecxmld fp@359: fp@359: SVNREV := $(shell svnversion . || echo "unknown") fp@359: CFLAGS += -Wall -DSVNREV="$(SVNREV)" fp@359: LDFLAGS += -Wall fp@359: CC := g++ fp@359: fp@359: OBJ := pdo_entry.o pdo.o sync_manager.o slave_device.o main.o fp@359: fp@359: #------------------------------------------------------------------------------ fp@359: fp@359: all: .depend $(EXE) fp@359: fp@359: $(EXE): $(OBJ) fp@359: $(CC) $(LDFLAGS) $(OBJ) $(LIB) -o $(EXE) fp@359: fp@359: doc: fp@359: doxygen Doxyfile fp@359: fp@359: %.o: %.cpp fp@359: $(CC) -c $(CFLAGS) $(INC) $< -o $@ fp@359: fp@359: .depend depend dep: fp@359: (for file in *.cpp; do $(CC) -M $(INC) $$file; done) > .depend fp@359: fp@359: clean: fp@359: @rm -f *.o *~ $(EXE) .depend core fp@359: fp@359: #------------------------------------------------------------------------------ fp@359: fp@359: ifneq ($(wildcard .depend),) fp@359: include .depend fp@359: endif fp@359: fp@359: #------------------------------------------------------------------------------