makefile cleanup

This commit is contained in:
jacekpoz 2024-02-11 23:46:59 +01:00
parent 022f0462e9
commit f3ef45abda
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -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/%=%)