Changeset 17500

Show
Ignore:
Timestamp:
09.10.2008 12:39:36 (11 years ago)
Author:
oranfry
Message:

made the win32 makefile work

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/trunk/search4j/win32.mak

    r17499 r17500  
    11########################################################################### 
    22# 
    3 # win32 makefile -- sqlite3 
     3# win32 makefile -- search4j 
    44# Copyright (C) 2008  DL Consulting Ltd 
    55# 
     
    2424########################################################################### 
    2525 
    26 bindir = @bindir@ 
    27  
    2826AR = lib 
    2927CC = cl 
     28LINKER = link 
    3029CPPFLAGS = 
    3130DEFS = -D_CRT_SECURE_NO_DEPRECATE 
    3231INCLUDES =  
     32LIBS = advapi32.lib 
    3333 
    34 COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES) 
    35 LINK = $(CC) -nologo -Fe"$@" $(LDFLAGS) 
    36  
     34COMPILE = $(CC) -c -GX /DWINDOWS=yes $(CPPFLAGS) $(DEFS) $(INCLUDES) 
     35LINK = $(LINKER) /OUT:$@ $(LDFLAGS) 
    3736 
    3837.SUFFIXES: 
    39 .SUFFIXES: .c .obj 
    40 .c.obj: 
     38.SUFFIXES: .cpp .obj 
     39.cpp.obj: 
    4140    $(COMPILE) $< 
    4241 
    43 SOURCES = \ 
    44     libsearch4j.cpp \ 
    45     search4j.cpp 
    46  
    47 OBJECTS = \ 
    48     libsearch4j.obj \ 
    49     search4j.obj 
    50  
    51 EXECUTABLE_OBJECTS = \ 
    52   $(OBJECTS) 
    53  
     42SOURCES = libsearch4j.cpp search4j.cpp 
     43OBJECTS = libsearch4j.obj search4j.obj 
     44EXECUTABLE_OBJECTS = $(OBJECTS) 
    5445EXECUTABLE = search4j.exe 
    5546 
    56 all: $(EXECUTABLE) 
     47all: $(EXECUTABLE) install 
    5748 
    58 search4j.exe: $(EXECUTABLE_OBJECTS) 
    59     $(LINK) $(EXECUTABLE_OBJECTS) $(LIBS) 
     49search4j.exe: $(EXECUTABLE_OBJECTS)  
     50    $(LINK) $(LIBS) $(EXECUTABLE_OBJECTS) 
    6051 
    6152clean: 
     
    6455 
    6556install: $(EXECUTABLE) 
    66     copy $(EXECUTABLE) "$(bindir)" 
     57    copy $(EXECUTABLE) "$(BINDIR)"