Initial commit
This commit is contained in:
commit
3f6facf64e
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal 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
43
Makefile
Normal 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
0
bin/.gitkeep
Normal file
11
src/main.c
Normal file
11
src/main.c
Normal 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");
|
||||
}
|
Loading…
Reference in New Issue
Block a user