History

add linux-all to makefile; house cleaning

Ge Wang committed 3 years ago

Commit c15ed091 parent 6cc09604 files · +57 −33Browse files

Showing the changes to src (2 of 4 files). Show all

Unified · Split

2 files
  1. src/core/makefile +7 −11
  2. src/makefile +23 −19
src/core/makefile+7−11
@@ -1,11 +1,11 @@
11 # default target: print usage message and quit
22 current:
33 @echo "[chuck build]: please use one of the following configurations:"
4− @echo " make linux-alsa, make linux-jack, make linux-pulse,"
4+ @echo " make linux-alsa, make linux-jack, make linux-pulse, linux-all,"
55 @echo " make mac, make mac-ub, make cygwin, or make win32"
66
7−.PHONY: mac mac-ub osx linux-pulse linux-jack linux-alsa cygwin osx-rl test
8−mac mac-ub osx linux-pulse linux-jack linux-alsa cygwin osx-rl: chuck-core
7+.PHONY: mac mac-ub osx linux-all linux linux-pulse linux-jack linux-alsa cygwin osx-rl test
8+mac mac-ub osx linux-all linux linux-pulse linux-jack linux-alsa cygwin osx-rl: chuck-core
99
1010 win32:
1111 make -f makefile.win32
@@ -48,6 +48,10 @@ ifneq (,$(strip $(filter mac mac-ub osx bin-dist-mac,$(MAKECMDGOALS)))) · 36 unmodified lines
4848 include makefile.x/makefile.mac
4949 endif
5050
51+ifneq (,$(strip $(filter linux linux-all,$(MAKECMDGOALS))))
52+include makefile.x/makefile.linux
53+endif
54+
5155 ifneq (,$(strip $(filter linux-pulse,$(MAKECMDGOALS))))
5256 include makefile.x/makefile.pulse
5357 endif
@@ -112,14 +116,6 @@ ifneq (,$(MAC_UB)) · 58 unmodified lines
112116 ARCHOPTS=-arch arm64 -arch x86_64
113117 endif
114118
115−NOTES=AUTHORS DEVELOPER PROGRAMMER README TODO COPYING INSTALL QUICKSTART \
116− THANKS VERSIONS
117−BIN_NOTES=README.txt
118−DOC_NOTES=GOTO
119−DIST_DIR=chuck-$(CK_VERSION)
120−DIST_DIR_EXE=chuck-$(CK_VERSION)-exe
121−CK_SVN=https://chuck-dev.stanford.edu/svn/chuck/
122−
123119 # pull in dependency info for *existing* .o files
124120 -include $(OBJS:.o=.d)
125121
src/makefile+23−19
@@ -1,19 +1,20 @@
11 COREDIR=core
22 HOSTDIR=host
33 RTAUDIODIR=RtAudio
4−DESTDIR?=/usr/local/bin
5−CK_PLATFORM=
4+CK_VERSION=1.5.0.3-dev
65
76
87 ########################## DEFAULT MAKE TARGET #################################
98 # default target: print usage message and quit
109 current:
11− @echo "[chuck build]: please use one of the following configurations:"
12− @echo " make linux-alsa, make linux-jack, make linux-pulse,"
13− @echo " make mac, make mac-ub, make cygwin, make win32, or make web"
10+ @echo "[chuck build]: please use the following configurations:"
11+ @echo " make linux-alsa, make linux-jack, make linux-pulse, linux-all,"
12+ @echo " make mac, make mac-ub, make web, make cygwin, make win32"
1413
1514
1615 ############################## MAKE INSTALL ####################################
16+DESTDIR?=/usr/local/bin
17+
1718 install:
1819 mkdir -p $(DESTDIR)
1920 cp $(wildcard chuck chuck.exe) $(DESTDIR)/
@@ -68,18 +69,17 @@ host_web/webchuck/js/webchuck.js: $(EMSCRIPTENSRCS) · 48 unmodified lines
6869
6970
7071
71−############################## MAKE INSTALL ####################################
72+################################ PLATFORMS #####################################
7273 ## note: If you want to build ChucK on linux with multiple audio drivers,
73−## call multiple build rules, e.g.:
74+## combine multiple build rules, e.g.:
7475 ## > make linux-pulse linux-alsa linux-jack
75−.PHONY: mac mac-ub osx linux-pulse linux-jack linux-alsa cygwin osx-rl test
76−mac mac-ub osx linux-pulse linux-jack linux-alsa cygwin osx-rl: chuck
76+
77+.PHONY: mac mac-ub osx linux-all linux linux-pulse linux-jack linux-alsa cygwin osx-rl test
78+mac mac-ub osx linux-all linux linux-pulse linux-jack linux-alsa cygwin osx-rl: chuck
7779
7880 win32:
7981 make -f $(COREDIR)/makefile.x/makefile.win32
8082
81−CK_VERSION=1.5.0.0
82−
8383
8484 ########################### COMPILATION TOOLS ##################################
8585 LEX=flex
@@ -121,10 +121,15 @@ endif · 35 unmodified lines
121121
122122
123123 ######################### PLATFORM-SPECIFIC THINGS #############################
124+
124125 ifneq (,$(strip $(filter mac mac-ub osx bin-dist-mac,$(MAKECMDGOALS))))
125126 include $(COREDIR)/makefile.x/makefile.mac
126127 endif
127128
129+ifneq (,$(strip $(filter linux linux-all,$(MAKECMDGOALS))))
130+include $(COREDIR)/makefile.x/makefile.linux
131+endif
132+
128133 ifneq (,$(strip $(filter linux-pulse,$(MAKECMDGOALS))))
129134 include $(COREDIR)/makefile.x/makefile.pulse
130135 endif
@@ -201,14 +206,12 @@ ARCH_ARGS=MAC_UB=true · 70 unmodified lines
201206 CFLAGS+=-D__MACOSX_UB__
202207 endif
203208
209+
204210 ############################ DISTRIBUTION INFO #################################
205−NOTES=AUTHORS DEVELOPER PROGRAMMER README TODO COPYING INSTALL QUICKSTART \
206− THANKS VERSIONS
207−BIN_NOTES=README.txt
208−DOC_NOTES=GOTO
211+# release notes
212+NOTES=AUTHORS DEVELOPERS INSTALL LICENSE QUICKSTART README.md THANKS VERSIONS
213+# where to put the newly constructed distribution
209214 DIST_DIR=chuck-$(CK_VERSION)
210−DIST_DIR_EXE=chuck-$(CK_VERSION)-exe
211−CK_SVN=https://chuck-dev.stanford.edu/svn/chuck/
212215
213216 # pull in dependency info for *existing* .o files
214217 -include $(OBJS:.o=.d)
@@ -259,10 +262,11 @@ src-dist: · 44 unmodified lines
259262 mkdir $(DIST_DIR) $(DIST_DIR)/src $(DIST_DIR)/examples
260263 # copy src
261264 git archive HEAD src | tar -x -C $(DIST_DIR)
262− rm -r $(DIST_DIR)/src/test
265+# rm -r $(DIST_DIR)/src/test
263266 # copy examples
264267 git archive HEAD examples | tar -x -C $(DIST_DIR)
265268 # copy notes
266− cp $(addprefix notes/,$(NOTES)) $(DIST_DIR)
269+ cp $(addprefix ./,$(NOTES)) $(DIST_DIR)
267270 # tar/gzip
268271 tar czf $(DIST_DIR).tgz $(DIST_DIR)
272+

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t