diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 34 |
1 files changed, 19 insertions, 15 deletions
@@ -1,24 +1,28 @@ .POSIX: -.SUFFIXES: .cat .msg +# This Makefile was generated by maje +# See https://gitlab.com/jkaivo/maje/ for more information +# Do not edit this Makefile by hand default: all -CFLAGS=-g -Wall -Wextra -Wpedantic -Werror -UTILITY=file -SOURCES=file.c magic.c -HEADERS=file.h -OBJECTS=file.o magic.o -L10N= -all: $(UTILITY) $(L10N) +CC=c99 +LD=$(CC) +CFLAGS=-Wall -Wextra -Wpedantic -Werror -g +LDFLAGS= -$(UTILITY): $(OBJECTS) $(HEADERS) +all: file -.msg.cat: - gencat $@ $< +clean: + rm -f file *.o -.c.cat: - sed -ne '/^\/\*\*cat/,/cat\*\*\//p;' $< | grep -v ^/ | grep -v ^\* | gencat $@ - +file: file.o +file.o: file.c + $(CC) $(CFLAGS) -c file.c -clean: - rm -f *.o $(L10N) $(UTILITY) +file: magic.o +magic.o: magic.c + $(CC) $(CFLAGS) -c magic.c + +file: + $(LD) $(LDFLAGS) -o $@ *.o |