Skip to content

Commit

Permalink
update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
slitvinov committed Mar 13, 2024
1 parent ee384f6 commit cbfb1c2
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions example/off_rotate/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
.POSIX:
.SUFFIXES:
.SUFFIXES: .c
include ../../conf.mk

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

$M: $M.o; $(CC) $< $(LDFLAGS) $(CO_LDFLAGS) $(ALG_LDFLAGS) -o $@
$M.o: $M.c; $(CC) $(CFLAGS) $(CO_CFLAGS) $< -c -o $@

test: $M; atest test/*
install:

.PHONY: clean test install
clean:; rm -f $M.o $M
PREC = d
CO_FLAGS = `co.conf --libs --cflags $(PREC)`
all: $M
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
clean:; rm -f $M

0 comments on commit cbfb1c2

Please sign in to comment.