- Timestamp:
- Mar 3, 2013, 8:18:08 PM (12 years ago)
- 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 1 UNAME := $(shell uname -s) 11 2 ifeq ("Linux","$(UNAME)") 12 3 GCC := i686-w64-mingw32-gcc … … 18 9 19 10 GCCFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct 20 LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll -mthread 11 LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll -mthread -Xlinker --major-image-version -Xlinker 1 21 12 22 13 #LIBS = -lwinmm -lopengl32 -lgdi32 23 14 LIBS = -lgdi32 24 OBJS = obj/binkw32.a15 OBJS = src/binkw32.def 25 16 OUT = build/binkw32.dll 26 17 … … 28 19 DEST = $(patsubst src/%.c,build/%.o,$(SRC)) 29 20 30 ALL: $( FOLDERS) $(DEST) $(OBJS)21 ALL: $(DEST) $(OBJS) 31 22 echo "Linking $<" 32 23 $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS) … … 36 27 rm $(OUT) 37 28 38 obj/binkw32.a: src/binkw32.def39 echo "Generating binkw32.a"40 $(DLLTOOL) -d $< -l $@41 42 29 build/%.o: src/%.c 43 30 echo "Compiling $<" … … 45 32 echo 46 33 47 $(FOLDERS):48 mkdir $@
Note:
See TracChangeset
for help on using the changeset viewer.