diff options
| author | 2017-12-31 18:55:33 +0100 | |
|---|---|---|
| committer | 2017-12-31 18:55:33 +0100 | |
| commit | 18bc4165e736d67cfbfe9045dac39edacc495e64 (patch) | |
| tree | 8ad029cc3bac4cc2aa50d10773b8e0db5c7e8542 /Makefile | |
| parent | 7abfd60bf8106576dd93ec63244136c182205eb6 (diff) | |
| download | tweetpipe-18bc4165e736d67cfbfe9045dac39edacc495e64.tar.gz | |
No more need for gmake on BSD
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3,8 +3,6 @@ WFLAGS ?= -Wall -Wextra -Wmissing-prototypes -Wdiv-by-zero -Wbad-function-cast - CFLAGS ?= -Os -march=native -fno-exceptions $(WFLAGS) CFLAGS += -I. -Iext/libhydrogen OBJ = ext/libhydrogen/hydrogen.o src/encpipe.o src/safe_rw.o -AR ?= ar -RANLIB ?= ranlib STRIP ?= strip SRC = \ @@ -19,6 +17,9 @@ all: bin bin: encpipe +.c.o: + $(CC) $(CFLAGS) -o $@ -c $< + encpipe: $(OBJ) $(CC) $(CFLAGS) -o encpipe $(OBJ) @@ -41,3 +42,5 @@ clean: rm -f encpipe $(OBJ) distclean: clean + +.SUFFIXES: .c .o |