Browse Source

Add makefile and placeholder program

master
Zenithium 4 months ago
parent
commit
b996e35c9e
Signed by: zenithium GPG Key ID: 38864E2AF5991B22
  1. 1
      .gitignore
  2. 17
      Makefile
  3. 8
      src/main.c

1
.gitignore

@ -0,0 +1 @@
ceapot

17
Makefile

@ -0,0 +1,17 @@
CFILES := $(shell find ./src/* -name "*.c")
PREFIX := /usr
CC := gcc
CFLAGS := -I./src/include
OUT := ceapot
all:
$(CC) $(CFLAGS) $(CFILES) -o $(OUT)
install: all
mv $(OUT) $(PREFIX)/bin
uninstall: install
rm $(PREFIX)/bin/$(OUT)
clean:
rm ./$(OUT)

8
src/main.c

@ -0,0 +1,8 @@
#include <stdio.h>
int
main()
{
printf("placeholder");
return 0;
}
Loading…
Cancel
Save