shithub: tlsclient

ref: 396f8f369db25a0d6b0120ea08ecc84d089b8202
dir: /Makefile/

View raw version
ROOT=.

include ./Make.config

LIBS=\
	libauthsrv/libauthsrv.a\
	libmp/libmp.a\
	libc/libc.a\
	libsec/libsec.a\

OFILES=cpu.$O

default: $(TARG)
$(TARG): $(LIBS) $(OFILES)
	$(CC) `pkg-config gnutls --libs` $(LDFLAGS) -o $(TARG) $(OFILES) $(LIBS) $(LDADD)

cpu.$O: cpu.c
	$(CC) `pkg-config gnutls --cflags` $(CFLAGS) cpu.c -o cpu.o

.PHONY: clean
clean:
	rm -f *.o */*.o */*.a *.a $(TARG)

.PHONY: libauthsrv/libauthsrv.a
libauthsrv/libauthsrv.a:
	(cd libauthsrv; $(MAKE))

.PHONY: libmp/libmp.a
libmp/libmp.a:
	(cd libmp; $(MAKE))

.PHONY: libc/libc.a
libc/libc.a:
	(cd libc; $(MAKE))

.PHONY: libsec/libsec.a
libsec/libsec.a:
	(cd libsec; $(MAKE))