Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: ports/sdlquake/Makefile

Issue 1804293003: Add support for new pnacl native toolchain driver (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Fix according to Brad's comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 EXEEXT ?= .nexe 5 EXEEXT ?= .nexe
6 6
7 SDL_LDFLAGS := $(shell sdl-config --libs) 7 SDL_LDFLAGS := $(shell sdl-config --libs)
8 SDL_CFLAGS := $(shell sdl-config --cflags) 8 SDL_CFLAGS := $(shell sdl-config --cflags)
9 LDFLAGS += $(SDL_LDFLAGS) 9 LDFLAGS += $(SDL_LDFLAGS)
10 CFLAGS += -Wno-pointer-sign -Wno-implicit-function-declaration 10 CFLAGS += -Wno-pointer-sign -Wno-implicit-function-declaration
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 OBJECTS := $(SOURCES:%.c=build/%.o) 59 OBJECTS := $(SOURCES:%.c=build/%.o)
60 OBJECTS := $(OBJECTS:%.S=build/%.o) 60 OBJECTS := $(OBJECTS:%.S=build/%.o)
61 61
62 all: quake${EXEEXT} 62 all: quake${EXEEXT}
63 63
64 quake_debug${EXEEXT}: $(OBJECTS) 64 quake_debug${EXEEXT}: $(OBJECTS)
65 $(RUN_CCLD)$(CXX) $(LDFLAGS) $^ -o $@ 65 $(RUN_CCLD)$(CXX) $(LDFLAGS) $^ -o $@
66 66
67 quake${EXEEXT}: quake_debug${EXEEXT} 67 quake${EXEEXT}: quake_debug${EXEEXT}
68 ifneq ($(NACL_ARCH),le32)
68 $(RUN_STRIP)$(STRIP) -o $@ $< 69 $(RUN_STRIP)$(STRIP) -o $@ $<
70 else
71 cp $< $@
72 endif
69 73
70 clean: 74 clean:
71 rm -f build/*.o *.${EXEEXT} 75 rm -f build/*.o *.${EXEEXT}
72 76
73 build/%.o: %.S 77 build/%.o: %.S
74 @mkdir -p build 78 @mkdir -p build
75 $(RUN_CC)$(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< 79 $(RUN_CC)$(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $<
76 80
77 build/%.o: %.c 81 build/%.o: %.c
78 @mkdir -p build 82 @mkdir -p build
79 $(RUN_CC)$(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< 83 $(RUN_CC)$(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $<
OLDNEW
« make_all.sh ('K') | « ports/sdl2-tests/nacl.patch ('k') | ports/stoken/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698