Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 585 Bytes
# Makefile for libEFLensController
CC = gcc
CFLAGS = -fPIC -Wall -Wextra -O2 -g -DSB_LINUX_BUILD -I. -I./../../
CPPFLAGS = -fPIC -Wall -Wextra -O2 -g -DSB_LINUX_BUILD -I. -I./../../
LDFLAGS = -shared -lstdc++
RM = rm -f
STRIP = strip
TARGET_LIB = libEFLensController.so
SRCS = main.cpp EFLensController.cpp x2focuser.cpp
OBJS = $(SRCS:.cpp=.o)
.PHONY: all
all: ${TARGET_LIB}
$(TARGET_LIB): $(OBJS)
$(CC) ${LDFLAGS} -o $@ $^
$(STRIP) $@ >/dev/null 2>&1 || true
$(SRCS:.cpp=.d):%.d:%.cpp
$(CC) $(CFLAGS) $(CPPFLAGS) -MM $< >$@
.PHONY: clean
clean:
${RM} ${TARGET_LIB} ${OBJS}
You can’t perform that action at this time.