Browse Source

Add a Readme.txt and a Makefile

Yann Weber 5 years ago
parent
commit
921b7586d6
3 changed files with 35 additions and 2 deletions
  1. 11
    0
      Makefile
  2. 22
    0
      README.txt
  3. 2
    2
      wtfstopw.asm

+ 11
- 0
Makefile View File

@@ -0,0 +1,11 @@
1
+all: wtfstopw
2
+
3
+wtfstopw: wtfstopw.o
4
+	ld -s -melf_x86_64 wtfstopw.o -o wtfstopw
5
+wtfstopw.o: wtfstopw.asm
6
+	nasm -felf64 wtfstopw.asm
7
+	
8
+.PHONY: clean
9
+
10
+clean:
11
+	-rm -fv wtfstopw wtfstopw.o

+ 22
- 0
README.txt View File

@@ -0,0 +1,22 @@
1
+WTFStopW : a simple stopwatch
2
+=============================
3
+
4
+Build :
5
+-------
6
+
7
+make
8
+
9
+or
10
+
11
+nasm -felf64 wtfstopw.asm && ld -s -melf_x86_64 wtfstopw.o -o wtfstopw
12
+
13
+Usage :
14
+-------
15
+./wtfstopw
16
+
17
+Interactions :
18
+--------------
19
+- press enter to exit or close stdin
20
+- send SIGINT (with kill -2 or ctrl + c) for new lap on stdout
21
+- elapsed time is sent on stderr and laps infos on stdout
22
+

+ 2
- 2
wtfstopw.asm View File

@@ -16,8 +16,8 @@
16 16
 
17 17
 ;
18 18
 ; A simple precise stopwatch
19
-; Build : nasm -felf64 wtfstopw.asm && ld -melf_x86_64 wtfstopw.o -o wtfstopw
20
-; Build Debug : nasm -felf64 -l wtfstopw.lst wtfstopw.asm && ld -s -melf_x86_64 wtfstopw.o -o wtfstopw
19
+; Build : nasm -felf64 wtfstopw.asm && ld -s -melf_x86_64 wtfstopw.o -o wtfstopw
20
+; Build Debug : nasm -felf64 -l wtfstopw.lst wtfstopw.asm && ld -melf_x86_64 wtfstopw.o -o wtfstopw
21 21
 ;
22 22
 ; Usage : ./wtfstopw
23 23
 ;	press enter to exit

Loading…
Cancel
Save