Makefile 383 Bytes
Newer Older
maltyam's avatar
maltyam committed
1
2
3
4
PROGRAMS = data_processor

all:: $(PROGRAMS)

5
6
7
8
CC = gcc
CPP = g++
CPPFLAGS = -I/usr/include/python3.6
LIBS = -lpython3.6m -lpthread
maltyam's avatar
maltyam committed
9

10
11
12
13
14
15
16
17
18
19
$(PROGRAMS): fsimulator 

fsimulator: fsimulator.o flight_server.o
	$(CPP) -o $@ $^ $(LIBS) $(LIBS)

%.o: %.cc
	$(CPP) $(CPPFLAGS) -c $< -o $@

%.o: %.c
	$(CC) -c $< -o $@ 
maltyam's avatar
maltyam committed
20
21

clean::
22
	rm -f $(PROGRAMS) *.o *~
maltyam's avatar
maltyam committed
23
24

.PHONY: clean all