Skip to content
Snippets Groups Projects
Commit bc79f4c9 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

simplifications

parent c0f358c2
Branches
Tags
No related merge requests found
CC=g++ CC=g++
EXECUTIBLE=aconvert EXECUTIBLE=aconvert
CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src CCFLAGS= -std=c++11 -O2 -c -Wall
LDFLAGS= -L../alib/lib -lxml2 -lalib LDFLAGS=
   
SOURCES=$(shell find src/ -name *cpp) SOURCES=$(shell find src/ -name *cpp)
OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES)) OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
......
CC=g++ CC=g++
EXECUTIBLE=adiff EXECUTIBLE=adiff
CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src CCFLAGS= -std=c++11 -O2 -c -Wall
LDFLAGS= -L../alib/lib -lxml2 -lalib LDFLAGS=
   
SOURCES=$(shell find src/ -name *cpp) SOURCES=$(shell find src/ -name *cpp)
OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES)) OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
   
#define PROGNAME "%s/adiff.%s" #define PROGNAME "%s/adiff.%s"
#define VERSION "0.0.1" #define VERSION "0.0.1"
#define USAGE "adiff [-V] -t difftype [diff-options] input1 input2"
   
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
if (argc == 2 && (!strcmp(argv[1], "-v") || !strcmp(argv[1], "--version"))) { if (argc == 2 && (!strcmp(argv[1], "-v") || !strcmp(argv[1], "--version"))) {
...@@ -46,7 +47,7 @@ int main(int argc, char *argv[]) { ...@@ -46,7 +47,7 @@ int main(int argc, char *argv[]) {
more: more:
   
if (optind == argc || difftype == NULL) { if (optind == argc || difftype == NULL) {
fprintf(stderr, "Usage: adiff [-V] -t difftype [diff-options] input1 input2"); fprintf(stderr, "Usage: %s\n", USAGE);
return EXIT_FAILURE; return EXIT_FAILURE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment