OLD | NEW |
(Empty) | |
| 1 # |
| 2 # proclaunch tests Makefile |
| 3 # |
| 4 UNAME := $(shell uname -s) |
| 5 ifeq ($(UNAME), MINGW32_NT-6.1) |
| 6 WIN32 = 1 |
| 7 endif |
| 8 ifeq ($(UNAME), MINGW32_NT-5.1) |
| 9 WIN32 = 1 |
| 10 endif |
| 11 |
| 12 ifeq ($(WIN32), 1) |
| 13 CC = cl |
| 14 LINK = link |
| 15 CFLAGS = //Od //I "iniparser" //D "WIN32" //D "_WIN32" //D "_DEBUG" //D "_CONSO
LE" //D "_UNICODE" //D "UNICODE" //Gm //EHsc //RTC1 //MDd //W3 //nologo //c //ZI
//TC |
| 16 LFLAGS = //OUT:"proclaunch.exe" //INCREMENTAL //LIBPATH:"iniparser\\" //NOLOGO
//DEBUG //SUBSYSTEM:CONSOLE //DYNAMICBASE //NXCOMPAT //MACHINE:X86 //ERRORREPORT
:PROMPT iniparser.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.l
ib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.
lib |
| 17 RM = rm -f |
| 18 |
| 19 default: all |
| 20 all: iniparser proclaunch |
| 21 |
| 22 iniparser: |
| 23 $(MAKE) -C iniparser |
| 24 |
| 25 proclaunch.obj: proclaunch.c |
| 26 $(CC) $(CFLAGS) proclaunch.c |
| 27 |
| 28 proclaunch: proclaunch.obj |
| 29 $(LINK) $(LFLAGS) proclaunch.obj |
| 30 |
| 31 else |
| 32 CC = gcc |
| 33 ifeq ($(UNAME), Linux) |
| 34 CFLAGS = -g -v -Iiniparser |
| 35 else |
| 36 CFLAGS = -g -v -arch i386 -Iiniparser |
| 37 endif |
| 38 |
| 39 LFLAGS = -L.. -liniparser |
| 40 AR = ar |
| 41 ARFLAGS = rcv |
| 42 RM = rm -f |
| 43 |
| 44 |
| 45 default: all |
| 46 |
| 47 all: libiniparser.a proclaunch |
| 48 |
| 49 libiniparser.a: |
| 50 $(MAKE) -C iniparser |
| 51 |
| 52 proclaunch: proclaunch.c |
| 53 $(CC) $(CFLAGS) -o proclaunch proclaunch.c -Iiniparser -Liniparser -lini
parser |
| 54 |
| 55 clean veryclean: |
| 56 $(RM) proclaunch |
| 57 endif |
OLD | NEW |