michael@0: # michael@0: # mozprocess proclaunch tests Makefile michael@0: # michael@0: michael@0: # include rules for platform determination michael@0: include iniparser/platform.mk michael@0: michael@0: ifeq ($(WIN32), 1) michael@0: # Win 32 michael@0: CC = cl michael@0: LINK = link michael@0: 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: 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: RM = rm -f michael@0: michael@0: all: iniparser proclaunch michael@0: michael@0: iniparser: michael@0: $(MAKE) -C iniparser michael@0: michael@0: proclaunch.obj: proclaunch.c michael@0: @(echo "compiling proclaunch; platform: $(UNAME), WIN32: $(WIN32)") michael@0: $(CC) $(CFLAGS) proclaunch.c michael@0: michael@0: proclaunch: proclaunch.obj michael@0: $(LINK) $(LFLAGS) proclaunch.obj michael@0: michael@0: clean: michael@0: $(RM) proclaunch.exe proclaunch.obj michael@0: else michael@0: # *nix/Mac michael@0: LFLAGS = -L.. -liniparser michael@0: AR = ar michael@0: ARFLAGS = rcv michael@0: RM = rm -f michael@0: CC = gcc michael@0: ifeq ($(UNAME), Linux) michael@0: CFLAGS = -g -v -Iiniparser michael@0: else michael@0: CFLAGS = -g -v -arch i386 -Iiniparser michael@0: endif michael@0: michael@0: all: libiniparser.a proclaunch michael@0: michael@0: libiniparser.a: michael@0: $(MAKE) -C iniparser michael@0: michael@0: proclaunch: proclaunch.c michael@0: @(echo "compiling proclaunch; platform: $(UNAME), WIN32: $(WIN32)") michael@0: $(CC) $(CFLAGS) -o proclaunch proclaunch.c -Iiniparser -Liniparser -liniparser michael@0: michael@0: clean: michael@0: $(RM) proclaunch michael@0: $(MAKE) -C iniparser clean michael@0: endif