update build system to rename main target to openmine3d and adjust related Makefile rules

This commit is contained in:
2026-01-26 19:37:08 -05:00
parent e9aa62edfa
commit b4e5d692be
2 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,2 @@
*.o
main
openmine3d

View File

@@ -11,17 +11,17 @@ HEADERS = $(wildcard *.h)
OBJS = $(SRCS:.c=.o)
%.o: %.c Makefile $(HEADERS)
gcc -c $< -o $@ $(CFLAGS)
main: $(OBJS)
gcc -o main $(OBJS) $(LDFLAGS)
openmine3d: $(OBJS)
gcc -o openmine3d $(OBJS) $(LDFLAGS)
clean:
rm -rf *.out
rm -rf openmine3d $(OBJS)
run:
./main.out
./openmine3d
install:
cp main.out /usr/local/bin/
cp openmine3d /usr/local/bin/
uninstall:
rm -rf /usr/local/bin/main.out
rm -rf /usr/local/bin/openmine3d