hl readme
This commit is contained in:
parent
bcbac301cc
commit
e3da1b9164
@ -11,13 +11,19 @@ Easy MAKE
|
|||||||
I make many example/test files, many require linking and trying to remember which libraries are dependencies or copying the right command from the source file gets old fast.
|
I make many example/test files, many require linking and trying to remember which libraries are dependencies or copying the right command from the source file gets old fast.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
```sh
|
||||||
$ cat test/hw.c
|
$ cat test/hw.c
|
||||||
|
```
|
||||||
|
```C
|
||||||
// @COMPILECMD gcc $@ -o hw.out
|
// @COMPILECMD gcc $@ -o hw.out
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
void main(){
|
void main(){
|
||||||
puts("Hello world");
|
puts("Hello world");
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
```sh
|
||||||
$ ./emake test/hw.c
|
$ ./emake test/hw.c
|
||||||
$ ./hw.out
|
$ ./hw.out
|
||||||
Hello world
|
Hello world
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user