Move object files lists to makefile rather than smb_build.
[kai/samba.git] / source4 / dynconfig.mk
1 [SUBSYSTEM::DYNCONFIG]
2
3 DYNCONFIG_OBJ_FILES = dynconfig.o
4
5 # set these to where to find various files
6 # These can be overridden by command line switches (see smbd(8))
7 # or in smb.conf (see smb.conf(5))
8 CONFIGFILE = $(sysconfdir)/smb.conf
9 PKGCONFIGDIR = $(libdir)/pkgconfig
10 LMHOSTSFILE = $(sysconfdir)/lmhosts
11
12 PATH_FLAGS = -DCONFIGFILE=\"$(CONFIGFILE)\" \
13          -DBINDIR=\"$(bindir)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
14          -DLOCKDIR=\"$(lockdir)\" -DPIDDIR=\"$(piddir)\" -DDATADIR=\"$(datadir)\" \
15          -DLOGFILEBASE=\"$(logfilebase)\" \
16          -DCONFIGDIR=\"$(sysconfdir)\" -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
17          -DSWATDIR=\"$(SWATDIR)\" \
18          -DPRIVATE_DIR=\"$(privatedir)\" \
19          -DMODULESDIR=\"$(modulesdir)\" -DJSDIR=\"$(JSDIR)\" \
20          -DTORTUREDIR=\"$(TORTUREDIR)\" \
21          -DSETUPDIR=\"$(SETUPDIR)\" -DWINBINDD_SOCKET_DIR=\"$(winbindd_socket_dir)\"
22
23 dynconfig.o: dynconfig.c Makefile
24         @echo Compiling $<
25         @$(CC) $(CFLAGS) $(CPPFLAGS) $(PICFLAG) $(PATH_FLAGS) -c $< -o $@