Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs3-24sp
project06
Commits
7cd7c745
Commit
7cd7c745
authored
1 year ago
by
Maxwell F. (Max) Chen
Browse files
Options
Download
Email Patches
Plain Diff
autocommit
parent
642044ac
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+4
-4
Makefile
with
4 additions
and
4 deletions
+4
-4
Makefile
View file @
7cd7c745
...
...
@@ -104,10 +104,10 @@ server:
# and $@ means "the target file", so the command tells clang
# to compile the source C file into the target .o file.
out/%.o
:
library/%.c
#
source file may be found in "library"
#
@git commit -am "Autocommit of library for ${USER}" > /dev/null || true
@
git commit
-am
"Autocommit of library for
${USER}
"
>
/dev/null
||
true
$(CC)
-c
$(CFLAGS)
$^
-o
$@
out/%.o
:
demo/%.c
#
or "demo"
#
@git commit -am "Autocommit of demo for ${USER}" > /dev/null || true
@
git commit
-am
"Autocommit of demo for
${USER}
"
>
/dev/null
||
true
$(CC)
-c
$(CFLAGS)
$^
-o
$@
out/%.o
:
tests/%.c
#
or "tests"
$(CC)
-c
$(CFLAGS)
$^
-o
$@
...
...
@@ -115,10 +115,10 @@ out/%.o: tests/%.c # or "tests"
# Emscripten compilation flags
# This is very similar to the above compilation, except for emscripten
out/%.wasm.o
:
library/%.c
#
source file may be found in "library"
#
@git commit -am "Autocommit of library for ${USER}" > /dev/null || true
@
git commit
-am
"Autocommit of library for
${USER}
"
>
/dev/null
||
true
$(EMCC)
-c
$(CFLAGS)
$^
-o
$@
out/%.wasm.o
:
demo/%.c
#
or "demo"
#
@git commit -am "Autocommit of demo or game for ${USER}" > /dev/null || true
@
git commit
-am
"Autocommit of demo or game for
${USER}
"
>
/dev/null
||
true
$(EMCC)
-c
$(CFLAGS)
$^
-o
$@
out/%.wasm.o
:
tests/%.c
#
or "tests"
$(EMCC)
-c
$(CFLAGS)
$^
-o
$@
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help