working release

multi v0.1.0
Avril 4 years ago
parent cd5db67f23
commit 5f164fdc84
Signed by: flanchan
GPG Key ID: 284488987C31F630

1
.gitignore vendored

@ -1 +1,2 @@
obj/
fcmp-*

@ -3,7 +3,7 @@ INCLUDE=include
PROJECT=fcmp
OPT_FLAGS+= -fgraphite -fno-strict-aliasing
OPT_FLAGS+= -fgraphite
RELEASE_CFLAGS?= -O3 -march=native -flto $(OPT_FLAGS)
RELEASE_LDFLAGS?= -O3 -flto
@ -25,7 +25,7 @@ debug: | dirs $(PROJECT)-debug
dirs:
@mkdir -p obj/src
%.o: %.c
obj/%.o: %.c
$(CC) -c $< $(CFLAGS) -o $@ $(LDFLAGS)
$(PROJECT)-release: CFLAGS := $(RELEASE_CFLAGS) $(CFLAGS)

@ -8,6 +8,7 @@ static const char* _prog_name = "fcmp";
__attribute__((noreturn)) void usage()
{
fprintf(stderr, "fcmp: compare files for identity\n");
fprintf(stderr, "usage: %s <file1> <file2>\n", _prog_name);
exit(-1);
}

Loading…
Cancel
Save