diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2026-05-31 14:12:23 +0200 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2026-05-31 14:12:23 +0200 |
| commit | cd82dadf3542fe559e78ea39d6689442fdf3d0e0 (patch) | |
| tree | 8a94f057d429a00d1ffcdffdb6b731ff58b80487 | |
| parent | d547f1ca7708004ef5515ef14dafdff365b2d064 (diff) | |
Properly integrate uconfig to the Makefile
| -rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -29,8 +29,8 @@ export __LIBS := $(shell pkg-config --libs sqlite3) -luconfig all: $(PROG) -$(PROG): src/config.o src/input.o src/main.o src/system.o src/utils.o - $(CC) -o $@ $^ $(__LIBS) $(LDFLAGS) $(LIBS) +$(PROG): src/config.o src/input.o src/main.o src/system.o src/utils.o uconfig/libuconfig.a + $(CC) -o $@ $^ $(__LIBS) $(__LDFLAGS) $(LDFLAGS) $(LIBS) src/config.o: src/config.c src/config.h src/system.h src/utils.h src/input.o: src/input.c src/input.h @@ -40,6 +40,9 @@ src/utils.o: src/utils.c src/system.h src/utils.h .c.o: $(CC) $(__CFLAGS) $(CFLAGS) -o $@ -c $< +uconfig/libuconfig.a: + make -C uconfig + install: $(PROG) mkdir -p $(PREFIX)/bin install --mode=0755 $(PROG) $(PREFIX)/bin/ |
