r16715: Reformat & add section on passdb backend changes (including sql/xml removeal)
[Samba.git] / examples / libmsrpc / test / Makefile
blob95fa5effa58bb17c2bf6418c3197e82a01bd0121
1 CC=gcc
2 INCLUDES= -I`pwd` -I../../../source/ -I../../../source/include -I../../../source/ubiqx
4 DEFS= -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
5 #CFLAGS= -O -D_SAMBA_BUILD_ -gstabs -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER -Wdeclaration-after-statement -g $(INCLUDES) $(DEFS) -fPIC
7 CFLAGS= -g -Wall -ansi $(INCLUDES)
9 LDFLAGS=-L. -L../../bin/
10 LIBS=../../../source/bin/libmsrpc.so
12 TESTS= lsapol lsaq lsaenum lsaenumprivs lsapriv ear \
13 regkey regopenkey regkeyenum regvalenum regsetval regqueryval regdelete security \
14 adduser samenum samlookup samgroup enable disable dominfo samuser \
15 svc \
16 smbc
18 all: $(TESTS)
20 lsapol: lsa/lsapol.o
21 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
23 lsapriv: lsa/lsapriv.o test_util.o
24 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
26 lsaq: lsa/lsaq.o
27 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
29 lsaenum: lsa/lsaenum.o
30 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
32 lsaenumprivs: lsa/lsaenumprivs.o
33 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
35 lsaaddrights: lsa/lsaaddrights.o
36 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
38 ear: lsa/ear.o
39 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
41 regkey: reg/regkey.o
42 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
44 regopenkey: reg/regopenkey.o
45 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
47 regkeyenum: reg/regkeyenum.o
48 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
50 regkeycreate: reg/regkeycreate.o
51 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
53 regvalenum: reg/regvalenum.o test_util.o
54 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
56 regsetval: reg/regsetval.o test_util.o
57 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
59 regqueryval: reg/regqueryval.o test_util.o
60 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
62 regdelete: reg/regdelete.o test_util.o
63 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
65 security: reg/security.o test_util.o
66 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
68 adduser: sam/adduser.o test_util.o
69 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
71 samenum: sam/samenum.o test_util.o
72 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
74 samlookup: sam/samlookup.o test_util.o
75 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
77 samgroup: sam/samgroup.o test_util.o
78 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
80 enable: sam/enable.o test_util.o
81 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
83 disable: sam/disable.o test_util.o
84 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
86 samuser: sam/samuser.o test_util.o
87 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
89 dominfo: sam/dominfo.o test_util.o
90 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
92 svc: svcctl/svc.o test_util.o
93 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS)
95 smbc: smbc_test/smbc.o test_util.o
96 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< test_util.o $(LIBS) ../../../source/bin/libsmbclient.so
98 clean:
99 rm -f $(TESTS) *.o lsa/*.o reg/*.o sam/*.o