Makefile 341 B

12345678910111213141516
  1. RTPABP_SRC=rtp_abp.c prog2.c
  2. RTPGBN_SRC=rtp_gbn.c prog2.c
  3. HEADERS=prog2.h
  4. all: abp gbn
  5. main: abp
  6. abp: $(RTPABP_SRC) $(HEADERS) Makefile
  7. gcc -o $@ $(RTPABP_SRC) -Wall -I -g -lm -DBIDIRECTIONAL=0
  8. gbn: $(RTPGBN_SRC) $(HEADERS) Makefile
  9. gcc -o $@ $(RTPGBN_SRC) -Wall -g -lm -DBIDIRECTIONAL=1
  10. clean:
  11. rm -f *~ *.o *.exe *.stackdump abp gbn