# Makefile de ejemplo para C++ # # Creado: jue abr 15 15:34:19 ART 2004 # # Copyleft 2004 - Leandro Lucarella, Bajo licencia GPL [http://www.gnu.org/] # # CONFIGURACION ################ # Opciones para el compilador C/C++ en modo ansi. CFLAGS = -Wall -ansi -pedantic-errors # Para que explote lo mas posible #CFLAGS += -O3 -DNDEBUG # Para valgrind o debug CFLAGS += -ggdb -DDEBUG # Opciones para el compilador C++. CXXFLAGS = $(CFLAGS) -fno-inline # Opciones del enlazador. #LDFLAGS= # Compilador. CC=g++ # Programas targets=test_send test_recv test_ipaddr # Fuentes fuentes ?= $(wildcard *.cpp) # REGLAS ######### .PHONY: all clean all: depend $(targets) test_send: test_send.o dev.o test_recv: test_recv.o dev.o test_ipaddr: test_ipaddr.o ipaddr.o depend: @makedepend $(fuentes) > /dev/null 2>&1 clean: @$(RM) -fv *.o $(targets) # DO NOT DELETE dev.o: dev.h /usr/include/unistd.h /usr/include/features.h dev.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h dev.o: /usr/include/bits/posix_opt.h /usr/include/bits/types.h dev.o: /usr/include/bits/wordsize.h /usr/include/bits/typesizes.h dev.o: /usr/include/bits/confname.h /usr/include/getopt.h dev.o: /usr/include/fcntl.h /usr/include/bits/fcntl.h dev.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h dev.o: /usr/include/bits/endian.h /usr/include/sys/select.h dev.o: /usr/include/bits/select.h /usr/include/bits/sigset.h dev.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h dev.o: /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h dev.o: /usr/include/sys/ipc.h /usr/include/bits/ipctypes.h dev.o: /usr/include/bits/ipc.h /usr/include/sys/msg.h /usr/include/bits/msq.h ipaddr.o: ipaddr.h test_ipaddr.o: ipaddr.h test_recv.o: dev.h /usr/include/unistd.h /usr/include/features.h test_recv.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h test_recv.o: /usr/include/bits/posix_opt.h /usr/include/bits/types.h test_recv.o: /usr/include/bits/wordsize.h /usr/include/bits/typesizes.h test_recv.o: /usr/include/bits/confname.h /usr/include/getopt.h test_recv.o: /usr/include/fcntl.h /usr/include/bits/fcntl.h test_recv.o: /usr/include/sys/types.h /usr/include/time.h test_recv.o: /usr/include/endian.h /usr/include/bits/endian.h test_recv.o: /usr/include/sys/select.h /usr/include/bits/select.h test_recv.o: /usr/include/bits/sigset.h /usr/include/bits/time.h test_recv.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h test_recv.o: /usr/include/bits/sched.h /usr/include/sys/ipc.h test_recv.o: /usr/include/bits/ipctypes.h /usr/include/bits/ipc.h test_recv.o: /usr/include/sys/msg.h /usr/include/bits/msq.h test_send.o: dev.h /usr/include/unistd.h /usr/include/features.h test_send.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h test_send.o: /usr/include/bits/posix_opt.h /usr/include/bits/types.h test_send.o: /usr/include/bits/wordsize.h /usr/include/bits/typesizes.h test_send.o: /usr/include/bits/confname.h /usr/include/getopt.h test_send.o: /usr/include/fcntl.h /usr/include/bits/fcntl.h test_send.o: /usr/include/sys/types.h /usr/include/time.h test_send.o: /usr/include/endian.h /usr/include/bits/endian.h test_send.o: /usr/include/sys/select.h /usr/include/bits/select.h test_send.o: /usr/include/bits/sigset.h /usr/include/bits/time.h test_send.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h test_send.o: /usr/include/bits/sched.h /usr/include/sys/ipc.h test_send.o: /usr/include/bits/ipctypes.h /usr/include/bits/ipc.h test_send.o: /usr/include/sys/msg.h /usr/include/bits/msq.h