An open API service indexing awesome lists of open source software.

https://github.com/rsdoiel/helloworld-c

Minimalist Makefile setup for the Unix classic and see if c99 works as expected for coomon case usage.
https://github.com/rsdoiel/helloworld-c

Last synced: about 2 months ago
JSON representation

Minimalist Makefile setup for the Unix classic and see if c99 works as expected for coomon case usage.

Awesome Lists containing this project

README

        

Hello World
===========

This is a minimalist setup for compiling the Unix
classic using a Makefile. I use it to see if the
machine has C setup as I expect.

```
make -f Makefile.simple
./helloworld
./hellofriend
make -f Makefile.simple clean
```

macOS
-----

The default c99 is broken on the macOS versions
I run. To solve this I use a shell script named
`c99` in my home bin directory with the following
content.

```
#/bin/bash
gcc --std=c99 $*
```

The c99 script needs to be executable and gcc installed.