Install script and bugfix

This commit is contained in:
gauvain-thomas
2024-02-25 15:54:51 +01:00
parent 92f2d344b2
commit f09d15be31
5 changed files with 46 additions and 12 deletions

23
Makefile Normal file
View File

@ -0,0 +1,23 @@
.POSIX:
CC = gcc
# CFLAGS = -Wall -Wextra -ansi -pedantic -std=c99 -g
CFLAGS = -Wall -ansi -pedantic -std=c99 -g -fsanitize=address
all: pkmn
install: all
cp pkmn /usr/local/bin
cp -r pokemons /usr/local/share/pkmn
uninstall:
rm /usr/local/bin/pkmn
rm -r /usr/local/share/pkmn
pkmn: pkmn.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
pkmn.o: pkmn.c
clean:
rm -f *.o