str

A small library for handling strings in c.


str

/

makefile

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
target := app
CC := gcc
CFLAGS := -g -Wall -Wextra -Wpedantic -std=c99
src := main.c str.c
obj := main.o str.o

all: $(target)

$(target): $(obj)
	$(CC) $(obj) -o $(target)

%.o: %.c
	$(CC) $(CFLAGS) -c $<

clean:
	rm $(obj)

distclean: clean
	rm $(target)

run: $(target)
	@./$(target)

debug: $(target)
	@gdb $(target)
Back to Top