Changeset 684 for Daodan/makefile


Ignore:
Timestamp:
Mar 3, 2013, 8:18:08 PM (12 years ago)
Author:
alloc
Message:

Daodan: Fixed makefile to forward-export to realbink

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/makefile

    r683 r684  
    1 ifneq (,$(findstring /cygdrive/,$(PATH)))
    2     UNAME := Cygwin
    3 else
    4 ifneq (,$(findstring WINDOWS,$(PATH)))
    5     UNAME := Windows
    6 else
    7     UNAME := $(shell uname -s)
    8 endif
    9 endif
    10 
     1UNAME := $(shell uname -s)
    112ifeq ("Linux","$(UNAME)")
    123    GCC := i686-w64-mingw32-gcc
     
    189
    1910GCCFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct
    20 LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll -mthread
     11LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll -mthread -Xlinker --major-image-version -Xlinker 1
    2112
    2213#LIBS = -lwinmm -lopengl32 -lgdi32
    2314LIBS = -lgdi32
    24 OBJS = obj/binkw32.a
     15OBJS = src/binkw32.def
    2516OUT = build/binkw32.dll
    2617
     
    2819DEST = $(patsubst src/%.c,build/%.o,$(SRC))
    2920
    30 ALL: $(FOLDERS) $(DEST) $(OBJS)
     21ALL: $(DEST) $(OBJS)
    3122        echo "Linking $<"
    3223        $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS)
     
    3627        rm $(OUT)
    3728
    38 obj/binkw32.a: src/binkw32.def
    39         echo "Generating binkw32.a"
    40         $(DLLTOOL) -d $< -l $@
    41 
    4229build/%.o: src/%.c
    4330        echo "Compiling $<"
     
    4532        echo
    4633
    47 $(FOLDERS):
    48         mkdir $@
Note: See TracChangeset for help on using the changeset viewer.