first commit

remove bin

wip
This commit is contained in:
2026-03-27 15:38:41 -04:00
committed by vx-clutch
commit 85c20db9b2
6 changed files with 117 additions and 0 deletions

33
Makefile Normal file
View File

@@ -0,0 +1,33 @@
include config.mk
SRC = src/frcctrlmgr.c
OBJ = $(SRC:.c=.o)
BIN = frcctrlmgr
DIST = $(BIN)-$(VERSION)
all: $(BIN)
$(BIN): $(OBJ)
$(LD) $(LDFLAGS) -o $@ $(OBJ)
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
install: $(BIN)
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin/$(BIN)
chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN)
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
clean:
rm -f $(OBJ) $(BIN) $(DIST).tar.gz
dist: clean
mkdir -p $(DIST)
cp -R src config.mk Makefile $(DIST)
tar -czf $(DIST).tar.gz $(DIST)
rm -rf $(DIST)
.PHONY: all install uninstall clean dist