~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject/pjlib/build/pjlib_samples.mak

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2011-11-25 13:24:12 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20111125132412-dc4qvhyosk74cd42
Tags: 1.0.1-4
Don't assume that arch:all packages will get built (closes: #649726)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
OUTDIR=.\output\pjlib-samples-i386-win32-$(VC)-$(MODE)
 
3
 
 
4
SRCDIR=../src/pjlib-samples
 
5
 
 
6
SAMPLES=$(OUTDIR)/except.exe \
 
7
            $(OUTDIR)/log.exe \
 
8
                $(OUTDIR)/list.exe \
 
9
 
 
10
!IF "$(MODE)" == "debug"
 
11
MODE_CFLAGS=/MTd
 
12
!ELSE
 
13
MODE_CFLAGS=/MT
 
14
!ENDIF
 
15
 
 
16
CFLAGS=/nologo /W4 $(MODE_CFLAGS) /DPJ_WIN32=1 /DPJ_M_I386=1 /I../include
 
17
 
 
18
PJLIB=../lib/pjlib-i386-win32-$(VC)-$(MODE).lib
 
19
 
 
20
DEPEND=$(PJLIB)
 
21
LIBS=netapi32.lib mswsock.lib ws2_32.lib ole32.lib advapi32.lib
 
22
CL=cl.exe
 
23
 
 
24
all: "$(OUTDIR)" $(SAMPLES)
 
25
 
 
26
$(SAMPLES): "$(SRCDIR)/$(@B).c" $(DEPEND)
 
27
                $(CL) /Fe$@ \
 
28
                /Fo$(@R).obj \
 
29
                $(CFLAGS) \
 
30
                $** $(LIBS)
 
31
 
 
32
"$(OUTDIR)" :
 
33
                @IF NOT EXIST "$(OUTDIR)" MKDIR "$(OUTDIR)"
 
34
 
 
35
clean :
 
36
                @IF EXIST "$(OUTDIR)" DEL /Q "$(OUTDIR)\*.*" && RMDIR "$(OUTDIR)"