testing/mozbase/mozprocess/tests/Makefile

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #
michael@0 2 # mozprocess proclaunch tests Makefile
michael@0 3 #
michael@0 4
michael@0 5 # include rules for platform determination
michael@0 6 include iniparser/platform.mk
michael@0 7
michael@0 8 ifeq ($(WIN32), 1)
michael@0 9 # Win 32
michael@0 10 CC = cl
michael@0 11 LINK = link
michael@0 12 CFLAGS = //Od //I "iniparser" //D "WIN32" //D "_WIN32" //D "_DEBUG" //D "_CONSOLE" //D "_UNICODE" //D "UNICODE" //Gm //EHsc //RTC1 //MDd //W3 //nologo //c //ZI //TC
michael@0 13 LFLAGS = //OUT:"proclaunch.exe" //INCREMENTAL //LIBPATH:"iniparser\\" //NOLOGO //DEBUG //SUBSYSTEM:CONSOLE //DYNAMICBASE //NXCOMPAT //ERRORREPORT:PROMPT iniparser.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
michael@0 14 RM = rm -f
michael@0 15
michael@0 16 all: iniparser proclaunch
michael@0 17
michael@0 18 iniparser:
michael@0 19 $(MAKE) -C iniparser
michael@0 20
michael@0 21 proclaunch.obj: proclaunch.c
michael@0 22 @(echo "compiling proclaunch; platform: $(UNAME), WIN32: $(WIN32)")
michael@0 23 $(CC) $(CFLAGS) proclaunch.c
michael@0 24
michael@0 25 proclaunch: proclaunch.obj
michael@0 26 $(LINK) $(LFLAGS) proclaunch.obj
michael@0 27
michael@0 28 clean:
michael@0 29 $(RM) proclaunch.exe proclaunch.obj
michael@0 30 else
michael@0 31 # *nix/Mac
michael@0 32 LFLAGS = -L.. -liniparser
michael@0 33 AR = ar
michael@0 34 ARFLAGS = rcv
michael@0 35 RM = rm -f
michael@0 36 CC = gcc
michael@0 37 ifeq ($(UNAME), Linux)
michael@0 38 CFLAGS = -g -v -Iiniparser
michael@0 39 else
michael@0 40 CFLAGS = -g -v -arch i386 -Iiniparser
michael@0 41 endif
michael@0 42
michael@0 43 all: libiniparser.a proclaunch
michael@0 44
michael@0 45 libiniparser.a:
michael@0 46 $(MAKE) -C iniparser
michael@0 47
michael@0 48 proclaunch: proclaunch.c
michael@0 49 @(echo "compiling proclaunch; platform: $(UNAME), WIN32: $(WIN32)")
michael@0 50 $(CC) $(CFLAGS) -o proclaunch proclaunch.c -Iiniparser -Liniparser -liniparser
michael@0 51
michael@0 52 clean:
michael@0 53 $(RM) proclaunch
michael@0 54 $(MAKE) -C iniparser clean
michael@0 55 endif

mercurial