[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / projects / libstubborn

File: [local] / projects / libstubborn / Makefile (download)

Revision 1.1.1.1 (vendor branch), Tue Apr 21 02:48:03 2020 UTC (2 years, 5 months ago) by thfr
Branch: thfr, MAIN
CVS Tags: thfr_20200420, HEAD
Changes since 1.1: +0 -0 lines

import libstubborn

CC ?=		cc
CFLAGS ?=	-O2 -pipe
RM ?=		rm -f
TARGET_LIB ?=	libstubborn.so
SRCS =		stubborn.c
MAJOR ?=	0
MINOR ?=	0

.PHONY: all
all: $(TARGET_LIB)

$(TARGET_LIB): stubborn.o
	$(CC) $(LDFLAGS) -shared -o $(TARGET_LIB).$(MAJOR).$(MINOR) stubborn.o

stubborn.o:
	$(CC) $(CFLAGS) -c -fPIC -Wall -Werror $(SRCS)

.PHONY: clean
clean:
	$(RM) $(TARGET_LIB) stubborn.o