source: branches/client-1.5/src/makefile@ 145

Last change on this file since 145 was 145, checked in by Yuri Dario, 17 years ago

Merged daemon code, now the plugin calls directly samba client library (still using smbrp code).

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1#
2# gcc 3.3.5 is required!
3#
4# for release build:
5# make
6#
7# for debug build:
8# make DEBUG=1
9#
10
11VERSION = 1.4.9
12BUILD = alpha1
13
14SAMBA = ../../samba-3.0/source
15TOOLKIT = f:\dev\toolkit452
16
17INCLUDES = -I.\h -I.\rc \
18 -I$(SAMBA) -I$(SAMBA)/include -I$(SAMBA)/lib/replace \
19 -I$(SAMBA)/popt \
20 -I$(SAMBA)/lib/talloc \
21 -I$(SAMBA)/librpc \
22 -I$(SAMBA)/tdb/include
23
24ifdef DEBUG
25CFLAGS = -g -Zomf -O0 -march=pentium -mcpu=pentium4 -DDEBUG_PRINTF
26LDFLAGS = -g -Zomf -Zno-fork -Zsym -Zmap -Zbin-files
27else
28CFLAGS = -s -Zomf -O3 -march=pentium -mcpu=pentium4
29LDFLAGS = -s -Zomf -Zno-fork -Zsym -Zmap -Zbin-files
30endif
31
32CC = gcc
33LIBS = $(SAMBA)/bin/libsmbclient.a -lsocket
34
35NDPSMB_OBJS = ndpsmb.o debug.o smbwrp.o
36
37ifdef DEBUG
38NDPSMB_OBJS += printf.o
39endif
40
41all: ndpsmb.dll ndpsmb.hlp
42
43.c.o:
44 $(CC) -c $(CFLAGS) $(INCLUDES) $*.c
45
46ndpsmb.dll: $(NDPSMB_OBJS) ndpsmb.def rc\rc.res makefile
47 $(CC) -Zdll $(LDFLAGS) -o $@ $(NDPSMB_OBJS) $(LIBS) rc\rc.res ndpsmb.def
48
49rc\description.rc: makefile
50 call BldLevelInf -V$(VERSION) -N"Netlabs.org" -D"NDPSMB - SMBFS NetDrive External Plugin $(BUILD)" -Len rc\description.rc
51
52rc\rc.res: .\rc\rc.rc .\rc\rc.dlg .\rc\rc.h .\H\ndpl_rc.h rc\description.rc
53 wrc -r -i.\h;.\rc;$(TOOLKIT)\h .\rc\rc.rc
54
55ndpsmb.hlp: .\rc\rc.ipf .\rc\rc.h .\H\hmacros.h makefile
56 -$(CC) -E $(INCLUDES) -x c .\rc\rc.ipf > rc.i
57 $(TOOLKIT)\bin\ipfc rc.i ndpsmb.hlp /COUNTRY=001 /CODEPAGE=850
58 del rc.i
59
60#ndpsmb.o: makefile .\H\ndextpl2.h .\H\ndfs.h smbcd.h smbwrp.h .\H\mydebug.h
61
62
63clean:
64 rm -f *.obj *.o
65 rm *.map
66 rm *.dll
67 rm *.hlp
68
Note: See TracBrowser for help on using the repository browser.