1234567891011121314151617181920212223242526 |
- CC = gcc
- CFLAGS = -p -Wall
- COPT = -O0
- SRCS = main.c
- all: main
- LOG_DIR=./logs
- LOG_PLT=$(LOG_DIR)/*.plot
- LOG_CMP=$(LOG_DIR)/*.ps
- main: $(SRCS) Makefile
- $(CC) $(CFLAGS) $(COPT) -o $@ $<
- cmp:
- gnuplot $(LOG_DIR)/*.plot
- find $(LOG_DIR) -name *.ps -exec ps2pdf {} {}.pdf \;
- cmpl:
- find $(LOG_DIR) -name *.pdf -exec evince {} \;
- cmpc:
- rm -rf $(LOG_DIR)
- clean: cmpc
- rm -f *~ *.o *.exe *.s *.out main
|