| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: patch-Makefile,v 1.1 2015/01/22 12:51:00 jmcneill Exp $ | | 1 | $NetBSD: patch-Makefile,v 1.2 2015/01/28 17:11:28 jmcneill Exp $ |
2 | | | 2 | |
3 | --- Makefile.orig 2014-11-03 15:11:07.000000000 +0000 | | 3 | --- Makefile.orig 2014-11-03 15:11:07.000000000 +0000 |
4 | +++ Makefile | | 4 | +++ Makefile |
5 | @@ -676,9 +676,6 @@ ifeq ($(PLATFORM),netbsd) | | 5 | @@ -676,9 +676,6 @@ ifeq ($(PLATFORM),netbsd) |
6 | | | 6 | |
7 | DEBUG_CFLAGS=$(BASE_CFLAGS) -g | | 7 | DEBUG_CFLAGS=$(BASE_CFLAGS) -g |
8 | | | 8 | |
9 | - BUILD_CLIENT = 0 | | 9 | - BUILD_CLIENT = 0 |
10 | - BUILD_GAME_QVM = 0 | | 10 | - BUILD_GAME_QVM = 0 |
11 | - | | 11 | - |
12 | else # ifeq netbsd | | 12 | else # ifeq netbsd |
13 | | | 13 | |
14 | ############################################################################# | | 14 | ############################################################################# |
| @@ -16,73 +16,44 @@ $NetBSD: patch-Makefile,v 1.1 2015/01/22 | | | @@ -16,73 +16,44 @@ $NetBSD: patch-Makefile,v 1.1 2015/01/22 |
16 | all: debug release | | 16 | all: debug release |
17 | | | 17 | |
18 | debug: | | 18 | debug: |
19 | - @$(MAKE) targets B=$(BD) CFLAGS="$(CFLAGS) $(DEPEND_CFLAGS) \ | | 19 | - @$(MAKE) targets B=$(BD) CFLAGS="$(CFLAGS) $(DEPEND_CFLAGS) \ |
20 | + @$(MAKE) targets B=$(BD) CFLAGS="$(BASE_CFLAGS) $(CFLAGS) $(DEPEND_CFLAGS) \ | | 20 | + @$(MAKE) targets B=$(BD) CFLAGS="$(BASE_CFLAGS) $(CFLAGS) $(DEPEND_CFLAGS) \ |
21 | $(DEBUG_CFLAGS)" V=$(V) | | 21 | $(DEBUG_CFLAGS)" V=$(V) |
22 | | | 22 | |
23 | release: | | 23 | release: |
24 | - @$(MAKE) targets B=$(BR) CFLAGS="$(CFLAGS) $(DEPEND_CFLAGS) \ | | 24 | - @$(MAKE) targets B=$(BR) CFLAGS="$(CFLAGS) $(DEPEND_CFLAGS) \ |
25 | + @$(MAKE) targets B=$(BR) CFLAGS="$(BASE_CFLAGS) $(CFLAGS) $(DEPEND_CFLAGS) \ | | 25 | + @$(MAKE) targets B=$(BR) CFLAGS="$(BASE_CFLAGS) $(CFLAGS) $(DEPEND_CFLAGS) \ |
26 | $(RELEASE_CFLAGS)" V=$(V) | | 26 | $(RELEASE_CFLAGS)" V=$(V) |
27 | | | 27 | |
28 | # Create the build directories, check libraries and print out | | 28 | # Create the build directories, check libraries and print out |
29 | @@ -1379,26 +1376,26 @@ Q3OBJ = \ | | 29 | @@ -1379,7 +1376,7 @@ Q3OBJ = \ |
30 | $(B)/client/sys_main.o | | 30 | $(B)/client/sys_main.o |
31 | | | 31 | |
32 | | | 32 | |
33 | - Q3OBJ += $(if $(or $(findstring arm,$(ARCH)), $(USBDK)), \ | | 33 | - Q3OBJ += $(if $(or $(findstring arm,$(ARCH)), $(USBDK)), \ |
34 | - $(B)/client/es_gamma.o $(B)/client/sdl_snd.o, \ | | 34 | + Q3OBJ += $(if $(or $(findstring rpi,$(ARCH)), $(USBDK)), \ |
35 | - $(B)/client/sdl_gamma.o $(B)/client/sdl_snd.o) | | 35 | $(B)/client/es_gamma.o $(B)/client/sdl_snd.o, \ |
36 | - | | 36 | $(B)/client/sdl_gamma.o $(B)/client/sdl_snd.o) |
37 | - Q3OBJ += $(if $(USBDK), \ | | | |
38 | - $(B)/client/es_input.o, \ | | | |
39 | - $(B)/client/sdl_input.o) | | | |
40 | - | | | |
41 | -# | | | |
42 | -#ifeq ($(ARCH),arm) | | | |
43 | -# Q3OBJ += \ | | | |
44 | -# $(B)/client/es_gamma.o \ | | | |
45 | -# $(B)/client/es_input.o \ | | | |
46 | -# $(B)/client/es_snd.o | | | |
47 | -#else | | | |
48 | -# Q3OBJ += \ | | | |
49 | -# $(B)/client/sdl_gamma.o \ | | | |
50 | -# $(B)/client/sdl_input.o \ | | | |
51 | -# $(B)/client/sdl_snd.o | | | |
52 | -#endif | | | |
53 | +# Q3OBJ += $(if $(or $(findstring rpi,$(ARCH)), $(USBDK)), \ | | | |
54 | +# $(B)/client/es_gamma.o $(B)/client/es_snd.o, \ | | | |
55 | +# $(B)/client/sdl_gamma.o $(B)/client/sdl_snd.o) | | | |
56 | + | | | |
57 | +# Q3OBJ += $(if $(USBDK), \ | | | |
58 | +# $(B)/client/es_input.o, \ | | | |
59 | +# $(B)/client/sdl_input.o) | | | |
60 | + | | | |
61 | + | | | |
62 | +ifeq ($(ARCH),rpi) | | | |
63 | + Q3OBJ += \ | | | |
64 | + $(B)/client/es_gamma.o \ | | | |
65 | + $(B)/client/es_input.o \ | | | |
66 | + $(B)/client/es_snd.o | | | |
67 | +else | | | |
68 | + Q3OBJ += \ | | | |
69 | + $(B)/client/sdl_gamma.o \ | | | |
70 | + $(B)/client/sdl_input.o \ | | | |
71 | + $(B)/client/sdl_snd.o | | | |
72 | +endif | | | |
73 | | | 37 | |
74 | ifeq ($(ARCH),i386) | | 38 | @@ -1388,7 +1385,7 @@ Q3OBJ = \ |
75 | Q3OBJ += \ | | 39 | $(B)/client/sdl_input.o) |
| | | 40 | |
| | | 41 | # |
| | | 42 | -#ifeq ($(ARCH),arm) |
| | | 43 | +#ifeq ($(ARCH),rpi) |
| | | 44 | # Q3OBJ += \ |
| | | 45 | # $(B)/client/es_gamma.o \ |
| | | 46 | # $(B)/client/es_input.o \ |
76 | @@ -1497,11 +1494,11 @@ ifeq ($(USE_MUMBLE),1) | | 47 | @@ -1497,11 +1494,11 @@ ifeq ($(USE_MUMBLE),1) |
77 | $(B)/client/libmumblelink.o | | 48 | $(B)/client/libmumblelink.o |
78 | endif | | 49 | endif |
79 | | | 50 | |
80 | - Q3POBJ += $(if $(or $(findstring arm,$(ARCH)), $(USBDK)), \ | | 51 | - Q3POBJ += $(if $(or $(findstring arm,$(ARCH)), $(USBDK)), \ |
81 | + Q3POBJ += $(if $(or $(findstring rpi,$(ARCH)), $(USBDK)), \ | | 52 | + Q3POBJ += $(if $(or $(findstring rpi,$(ARCH)), $(USBDK)), \ |
82 | $(B)/client/es_glimp.o $(B)/client/etc1encode.o, \ | | 53 | $(B)/client/es_glimp.o $(B)/client/etc1encode.o, \ |
83 | $(B)/client/sdl_glimp.o) | | 54 | $(B)/client/sdl_glimp.o) |
84 | | | 55 | |
85 | -#ifeq ($(ARCH),arm) | | 56 | -#ifeq ($(ARCH),arm) |
86 | +#ifeq ($(ARCH),rpi) | | 57 | +#ifeq ($(ARCH),rpi) |
87 | # Q3POBJ += \ | | 58 | # Q3POBJ += \ |
88 | # $(B)/client/es_glimp.o \ | | 59 | # $(B)/client/es_glimp.o \ |