added Makefile inside src dir

This commit is contained in:
bjoernf 2023-08-25 10:44:15 +02:00
parent 3b348066bd
commit b3d7d6b45b

33
src/Makefile Normal file
View File

@ -0,0 +1,33 @@
.PHONY:all
all:
gcc -Wall *.c
.PHONY:debug
debug:
gcc -Wall -g *.c
gdb a.out
.PHONY:run
run:
gcc -Wall *.c
./a.out
.PHONY:install
install: a.out
cp a.out /usr/local/bin/ics_analyzer
.PHONY:clean
clean:
-rm a.out
.PHONY:uninstall
uninstall:
-rm /usr/local/bin/ics_analyzer
.PHONY:test
test:
./a.out
@echo
./a.out -h
@echo
./a.out -f ../tests/calendar.ics