Makefile.remote 521 Bytes
Newer Older
1 2 3 4 5 6 7 8
CC=gcc
CFLAGS=-Wall -g -pthread -DT_TRACER

#CFLAGS += -O3 -ffast-math -fomit-frame-pointer

LIBS=-lX11 -lm

PROG=tracer_remote
9
OBJS=remote_old.o plot.o database.o gui.o
10 11 12 13

$(PROG): gui/gui.a $(OBJS)
	$(CC) $(CFLAGS) -o $(PROG) $(OBJS) gui/gui.a $(LIBS)

14 15 16
textlog: remote.o database.o event.o handler.o textlog.o
	$(CC) $(CFLAGS) -o textlog $^

17 18 19 20 21 22 23 24 25 26 27
.PHONY: gui/gui.a

gui/gui.a:
	cd gui && make

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

main.o: ../T_IDs.h ../T_defs.h

clean:
28
	rm -f *.o $(PROG) core textlog
29
	cd gui && make clean