Init skeleton C project

This commit is contained in:
Stephen Seo 2022-01-08 19:12:33 +09:00
parent 0c88f2f1f7
commit b492770ed0
3 changed files with 18 additions and 0 deletions

2
c_impl/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
src/*.o
ReciprocalOfPalindromes

13
c_impl/Makefile Normal file
View File

@ -0,0 +1,13 @@
CC ?= gcc
CFLAGS ?= -Wall -Wextra -Wpedantic
all: ReciprocalOfPalindromes
ReciprocalOfPalindromes: src/main.o
$(CC) $(CFLAGS) -o ReciprocalOfPalindromes $^
.PHONY: clean
clean:
rm -f src/*.o
rm -f ReciprocalOfPalindromes

3
c_impl/src/main.c Normal file
View File

@ -0,0 +1,3 @@
int main() {
return 0;
}