hello world + build script
This commit is contained in:
commit
84e298883a
3 changed files with 26 additions and 0 deletions
15
build.sh
Executable file
15
build.sh
Executable 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
3
include/pupdns.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
8
src/main.c
Normal file
8
src/main.c
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include "pupdns.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("Hello, world!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue