Makefile 433 Bytes
Newer Older
Jeroen Vreeken's avatar
Jeroen Vreeken committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
include ../build.mk

CFLAGS= -Wall -O3 \
	-I../controller
LDFLAGS= -lusb -lpthread -lrt -lm -ldl

all: winrotor-usb.a winrotor winrotor_ctrl

winrotor_ctrl: winrotor_ctrl.o winrotor-usb.a -lusb ../controller/controller.a ../log/log.a

winrotor: winrotor.o winrotor-usb.a -lusb ../controller/controller.a ../log/log.a

.PHONY: winrotor-usb
winrotor-usb.a: winrotor-usb.a(winrotor-usb.o)

clean:
	rm -f *.o *.a winrotor winrotor_ctrl