Initial commit

This commit is contained in:
Tyler Perkins 2021-09-29 18:44:00 -04:00
commit 3f6facf64e
4 changed files with 63 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
#ignore all .o files
src/**/*.o
#ignore all swp files
**/*.swp
#ignore all executables, but still keep the bin folder
bin/*
!bin/.gitkeep

43
Makefile Normal file
View File

@ -0,0 +1,43 @@
###############################################################################
# Tyler Perkins
# 9-23-21
# Makefile
#
CC = gcc
FLAGS = -pipe
CFLAGS = -Wall
CFLAGS += -Ofast
#CFLAGS += -g
#CFLAGS += -pg
LIBRARIES =
SRC = $(shell find ./src -name '*.c')
OBJ = $(subst .c,.o,$(SRC))
BIN = ./bin
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
TARGET = markov-music
MAKEFLAGS += --jobs=4
all : $(OBJ)
@echo LD $@
@$(CC) $(FLAGS) $(CFLAGS) -o $(BIN)/$(TARGET) $(OBJ) $(LIBRARIES)
.c.o :
@echo CC $<
@$(CC) $(FLAGS) $(CFLAGS) $(LIBRARIES) $(DEFINITIONS) -c $< -o $@
install : all
uninstall :
clean :
find . -type f -name '*.o' -delete
rm -rf $(BIN)/*

0
bin/.gitkeep Normal file
View File

11
src/main.c Normal file
View File

@ -0,0 +1,11 @@
///////////////////////////////////////////////////////////////////////////////
// Tyler Perkins
// 9-29-21
// Entry point
//
#include <stdio.h>
int main(int argc, char** argv){
printf("Hello World!\n");
}