diff --git a/Makefile b/Makefile index ad81ef4..0544f45 100644 --- a/Makefile +++ b/Makefile @@ -12,12 +12,16 @@ LDFLAGS = NAME = modfetch SRC = src -_PROG = modfetch.c config.c util.c +BIN = target + +_PROG = config.c fetch.c main.c util.c PROG = $(addprefix $(SRC)/, $(_PROG)) + _LIB = semver.c LIB = $(addprefix $(SRC)/, $(_LIB)) + OBJ = $(_PROG:.c=.o) $(_LIB:.c=.o) -BIN = target + _MOD = $(wildcard modules/*.c) MOD = $(_MOD:modules/%=%)