mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
3ddf4e831a
(This used to be commit 3e6b75d955
)
36 lines
1.5 KiB
Makefile
36 lines
1.5 KiB
Makefile
[LIBRARY::DYNCONFIG]
|
|
VERSION = 0.0.1
|
|
SO_VERSION = 0
|
|
OBJ_FILES = dynconfig.o
|
|
|
|
PATH_FLAGS = -DCONFIGFILE=\"$(CONFIGFILE)\" \
|
|
-DBINDIR=\"$(BINDIR)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
|
|
-DLOCKDIR=\"$(LOCKDIR)\" -DPIDDIR=\"$(PIDDIR)\" -DDATADIR=\"$(DATADIR)\" \
|
|
-DLOGFILEBASE=\"$(LOGFILEBASE)\" -DSHLIBEXT=\"$(SHLIBEXT)\" \
|
|
-DCONFIGDIR=\"$(CONFIGDIR)\" -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
|
|
-DSWATDIR=\"$(SWATDIR)\" -DPRIVATE_DIR=\"$(PRIVATEDIR)\" \
|
|
-DMODULESDIR=\"$(MODULESDIR)\" -DJSDIR=\"$(JSDIR)\" \
|
|
-DSETUPDIR=\"$(SETUPDIR)\" -DWINBINDD_SOCKET_DIR=\"$(WINBINDD_SOCKET_DIR)\"
|
|
|
|
./dynconfig.o: dynconfig.c Makefile
|
|
@echo Compiling $<
|
|
@$(CC) $(CFLAGS) $(PICFLAG) $(PATH_FLAGS) -c $< -o $@
|
|
|
|
# dynconfig defines used for binaries in bin/, when configure ran in developer
|
|
# mode:
|
|
|
|
DEVEL_PATH_FLAGS = -DCONFIGFILE=\"$(CONFIGFILE)\" -DBINDIR=\"$(builddir)/bin\" \
|
|
-DLMHOSTSFILE=\"$(LMHOSTSFILE)\" -DLOCKDIR=\"$(LOCKDIR)\" \
|
|
-DPIDDIR=\"$(PIDDIR)\" -DDATADIR=\"$(srcdir)/codepages\" \
|
|
-DLOGFILEBASE=\"$(LOGFILEBASE)\" -DSHLIBEXT=\"$(SHLIBEXT)\" \
|
|
-DCONFIGDIR=\"$(CONFIGDIR)\" -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
|
|
-DSWATDIR=\"$(srcdir)/../swat\" -DPRIVATE_DIR=\"$(PRIVATEDIR)\" \
|
|
-DMODULESDIR=\"$(builddir)/bin/modules\" \
|
|
-DJSDIR=\"$(srcdir)/scripting/libjs\" \
|
|
-DSETUPDIR=\"$(srcdir)/setup\" \
|
|
-DWINBINDD_SOCKET_DIR=\"$(WINBINDD_SOCKET_DIR)\"
|
|
|
|
./dynconfig-devel.o: dynconfig.c Makefile
|
|
@echo Compiling $<
|
|
@$(CC) $(CFLAGS) $(PICFLAG) $(DEVEL_PATH_FLAGS) -c $< -o $@
|