summaryrefslogtreecommitdiff
path: root/source3/Makefile.lib
blob: 22102d7dfb9680fb4410d79bcb0eaea8a28d2029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
###########################################################################
# Library Makefile for Samba SMB client/server for unix
# Copyright (C) Andrew Tridgell              1992-1996
# Copyright (C) John H Terpstra              1995-1997
# Copyright (C) Luke Kenneth Casson Leighton 1996-1997
###########################################################################

all : $(THIS_LIB)

.SUFFIXES:
.SUFFIXES: .c .o .h

.c.o: $(INCLUDES)
	@echo Compiling $*.c
	@$(CC) $(CFLAGS) -c $*.c -o $*.o

$(THIS_LIB): $(THIS_OBJ) $(LIB_INCS)
	@echo Linking $@
	@$(AR) $@ $(THIS_OBJ)
	@$(RANLIB) $@ 

clean:
	rm -f core $(THIS_OBJ) $(THIS_LIB) *~

cleandir:  clean
	rm -f .depend tags

realclean: clean

proto:
	@$(SHELL) ../checkos.sh $(FLAGSM)
	$(AWK) -f ../mkproto.awk `echo $(THIS_PROTO_OBJ) | sed -e 's/\.o/\.c/g' | tr ' ' '\n' | sort | uniq` > $(LIBNAME)_proto.h