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.
- Host: GitHub
- URL: https://github.com/rsdoiel/helloworld-c
- Owner: rsdoiel
- License: gpl-3.0
- Created: 2021-05-02T19:21:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-03T19:12:52.000Z (about 4 years ago)
- Last Synced: 2025-02-16T07:13:22.014Z (4 months ago)
- Language: C
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
- Authors: AUTHORS
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.