hello world + build script

This commit is contained in:
Piper Pentagram 2025-05-13 11:01:13 -07:00
commit 84e298883a
3 changed files with 26 additions and 0 deletions

15
build.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
INCLUDE_DIR=${SCRIPT_DIR}/include
SRC_DIR=${SCRIPT_DIR}/src
CC=gcc
CFLAGS=-I${INCLUDE_DIR}
EXE=pupdns
SRCS=${SRC_DIR}/*.c
DEPS=${INCLUDE_DIR}/*.h
${CC} -o ${EXE} ${SRCS} ${CFLAGS}

3
include/pupdns.h Normal file
View file

@ -0,0 +1,3 @@
#pragma once
#include <stdio.h>

8
src/main.c Normal file
View file

@ -0,0 +1,8 @@
#include "pupdns.h"
int main()
{
printf("Hello, world!\n");
return 0;
}