summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e917176..ca084fe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
-all:
- go build server.go
- ${CC} -O3 bilingual_sort.c -o bilingual_sort
+all: bilingual_sort server
+
+bilingual_sort: bilingual_sort.c
+ ${CC} -O3 -o $@ $<
+
+server: server.go
+ go build $<
clean:
rm -f bilingual_sort server