|
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 |
|
|---|
| 11 | VERSION = 1.4.9
|
|---|
| 12 | BUILD = alpha1
|
|---|
| 13 |
|
|---|
| 14 | SAMBA = ../../samba-3.0/source
|
|---|
| 15 | TOOLKIT = f:\dev\toolkit452
|
|---|
| 16 |
|
|---|
| 17 | INCLUDES = -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 |
|
|---|
| 24 | ifdef DEBUG
|
|---|
| 25 | CFLAGS = -g -Zomf -O0 -march=pentium -mcpu=pentium4 -DDEBUG_PRINTF
|
|---|
| 26 | LDFLAGS = -g -Zomf -Zno-fork -Zsym -Zmap -Zbin-files
|
|---|
| 27 | else
|
|---|
| 28 | CFLAGS = -s -Zomf -O3 -march=pentium -mcpu=pentium4
|
|---|
| 29 | LDFLAGS = -s -Zomf -Zno-fork -Zsym -Zmap -Zbin-files
|
|---|
| 30 | endif
|
|---|
| 31 |
|
|---|
| 32 | CC = gcc
|
|---|
| 33 | LIBS = $(SAMBA)/bin/libsmbclient.a -lsocket
|
|---|
| 34 |
|
|---|
| 35 | NDPSMB_OBJS = ndpsmb.o debug.o smbwrp.o
|
|---|
| 36 |
|
|---|
| 37 | ifdef DEBUG
|
|---|
| 38 | NDPSMB_OBJS += printf.o
|
|---|
| 39 | endif
|
|---|
| 40 |
|
|---|
| 41 | all: ndpsmb.dll ndpsmb.hlp
|
|---|
| 42 |
|
|---|
| 43 | .c.o:
|
|---|
| 44 | $(CC) -c $(CFLAGS) $(INCLUDES) $*.c
|
|---|
| 45 |
|
|---|
| 46 | ndpsmb.dll: $(NDPSMB_OBJS) ndpsmb.def rc\rc.res makefile
|
|---|
| 47 | $(CC) -Zdll $(LDFLAGS) -o $@ $(NDPSMB_OBJS) $(LIBS) rc\rc.res ndpsmb.def
|
|---|
| 48 |
|
|---|
| 49 | rc\description.rc: makefile
|
|---|
| 50 | call BldLevelInf -V$(VERSION) -N"Netlabs.org" -D"NDPSMB - SMBFS NetDrive External Plugin $(BUILD)" -Len rc\description.rc
|
|---|
| 51 |
|
|---|
| 52 | rc\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 |
|
|---|
| 55 | ndpsmb.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 |
|
|---|
| 63 | clean:
|
|---|
| 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.