CC = @CC@
CFLAGS = @CFLAGS@ -I.

LIBS = @LIBS@
CPU = @host_cpu@

SRC=	Src
BIN=	Bin/$(CPU)
UOBJS=   $(SRC)/pathchirp_run.c 
SOBJS=   $(SRC)/pathchirp_snd.c $(SRC)/realtime.c $(SRC)/hash.c
ROBJS=   $(SRC)/realtime.c $(SRC)/pathchirp_rcv.c $(SRC)/alloc_rcv.c $(SRC)/chirps_rcv.c $(SRC)/compute_bw_contextsw_rcv.c $(SRC)/loss_reorder_rcv.c $(SRC)/open_files_rcv.c $(SRC)/parse_cmd_line_rcv.c $(SRC)/signal_alrm_rcv.c  $(SRC)/control_rcv.c $(SRC)/hash.c
OBJS=    $(SOBJS) $(ROBJS)

TARGETS=$(BIN)/pathchirp_run $(BIN)/pathchirp_snd $(BIN)/pathchirp_rcv 

all: $(TARGETS)

$(BIN)/pathchirp_snd: $(SRC)/pathchirp_snd.c $(SRC)/pathchirp.h \
			$(SRC)/delay.h config.h $(SRC)/pathchirp_snd.h \
			$(SRC)/realtime.c $(SRC)/realtime.h $(SRC)/hash.c
	./mkinstalldirs $(BIN)
	$(CC) $(CFLAGS) $(SOBJS) -o $(BIN)/pathchirp_snd $(LIBS) 

$(BIN)/pathchirp_rcv: $(SRC)/pathchirp_rcv.c $(SRC)/pathchirp.h \
		      $(SRC)/realtime.c $(SRC)/realtime.h config.h \
		      $(SRC)/alloc_rcv.c $(SRC)/chirps_rcv.c \
                  $(SRC)/compute_bw_contextsw_rcv.c $(SRC)/loss_reorder_rcv.c \
                  $(SRC)/open_files_rcv.c $(SRC)/parse_cmd_line_rcv.c \
		  $(SRC)/signal_alrm_rcv.c  $(SRC)/control_rcv.c \
		  $(SRC)/pathchirp_rcv.h $(SRC)/hash.c \
	./mkinstalldirs $(BIN)
	$(CC) $(CFLAGS) $(ROBJS) -o $(BIN)/pathchirp_rcv $(LIBS) 

$(BIN)/pathchirp_run: $(SRC)/pathchirp_run.c $(SRC)/pathchirp_run.h
	./mkinstalldirs $(BIN)
	$(CC) $(CFLAGS) $(UOBJS) -o $(BIN)/pathchirp_run $(LIBS) 

clean: 
#	rm -f ${TARGETS}
	rm -f config.cache config.log config.status

distclean: clean
	rm -f Makefile configure config.h

configure: configure.in
	autoconf

Makefile: Makefile.in configure
	./configure


syntax highlighted by Code2HTML, v. 0.9.1