Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
slitvinov committed May 22, 2024
1 parent 404ea17 commit 318ce19
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 27 deletions.
2 changes: 1 addition & 1 deletion bin/geomview/geomview.m4
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ he geomview wrapper
-O write all PPM files and exit
-OO write all oogl files and exit
-format ppmscreen|ppm|ps|ppmosmesa|ppmosglx
-p command process every off file by running 'command' < IN.off > OUT.off
-p command process every off file by running 'command' IN.off > OUT.off
-n none|each|all|keep normalization status (see geomview manual)
-c command run command on every file and write output to stderr, %f is replaced by a file name
-e command if keys 'e' is pressed runs
Expand Down
34 changes: 8 additions & 26 deletions bin/obj/Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,14 @@
.POSIX:
.PHONY: clean test install run lint
.SUFFIXES: .o .c

.SUFFIXES:
.SUFFIXES: .c
include ../../conf.mk
M = \
main\

M = main
PREC = d
CO_CFLAGS = `co.conf --cflags $(PREC)`
CO_LDFLAGS = `co.conf --libs $(PREC)`

LINK = $(CC)

CO_FLAGS = `co.conf --libs --cflags $(PREC)`
all: $M
install: $M
mkdir -p $(PREFIX)/bin
cp main $(PREFIX)/bin/co.2obj
.o:
$(LINK) $< $(LDFLAGS) $(CO_LDFLAGS) -o $@

.c.o:
$(CC) $(CFLAGS) $(CO_CFLAGS) $< -c -o $@

%: %.c

lint:; make CFLAGS='-Wall -Wextra -g -O2'
test: $M; atest test/*
install:
run: $M; @co.run ./rbc


clean:; rm -f $M $(M:=.o)
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
clean:; rm -f $M
test:
4 changes: 4 additions & 0 deletions bin/orient/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ M = main
PREC = d
CO_FLAGS = `co.conf --libs --cflags $(PREC)`
all: $M
install: $M
mkdir -p $(PREFIX)/bin
cp main $(PREFIX)/bin/co.orient
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
clean:; rm -f $M
test:

0 comments on commit 318ce19

Please sign in to comment.