Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lfittl committed Jan 1, 2024
1 parent 7d9e7b6 commit 3b32e02
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Makefile.msvc
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ examples: $(EXAMPLES)
.\examples\simple_plpgsql

examples/simple: examples/simple.c $(ARLIB)
$(CC) $(CFLAGS) examples/simple.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ examples/simple.c $(ARLIB)

examples/scan: examples/scan.c $(ARLIB)
$(CC) $(CFLAGS) examples/scan.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ examples/scan.c $(ARLIB)

examples/normalize: examples/normalize.c $(ARLIB)
$(CC) $(CFLAGS) examples/normalize.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ examples/normalize.c $(ARLIB)

examples/simple_error: examples/simple_error.c $(ARLIB)
$(CC) $(CFLAGS) examples/simple_error.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ examples/simple_error.c $(ARLIB)

examples/normalize_error: examples/normalize_error.c $(ARLIB)
$(CC) $(CFLAGS) examples/normalize_error.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ examples/normalize_error.c $(ARLIB)

examples/simple_plpgsql: examples/simple_plpgsql.c $(ARLIB)
$(CC) $(CFLAGS) examples/simple_plpgsql.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ examples/simple_plpgsql.c $(ARLIB)

TESTS = test/deparse test/fingerprint test/fingerprint_opts test/normalize test/parse test/parse_opts test/parse_protobuf test/parse_protobuf_opts test/parse_plpgsql test/scan test/split
test: $(TESTS)
Expand All @@ -66,43 +66,43 @@ test: $(TESTS)
# Doesn't work because of C2026: string too big, trailing characters truncated
#test/complex: test/complex.c $(ARLIB)
# We have "-Isrc/" because this test uses pg_query_fingerprint_with_opts
# $(CC) $(CFLAGS) -Isrc/ test/complex.c $(ARLIB)
# $(CC) $(CFLAGS) -o $@ -Isrc/ test/complex.c $(ARLIB)

# Doesn't work since this requires pthreads
#test/concurrency: test/concurrency.c test/parse_tests.c $(ARLIB)
# $(CC) $(CFLAGS) test/concurrency.c $(ARLIB)
# $(CC) $(CFLAGS) -o $@ test/concurrency.c $(ARLIB)

test/deparse: test/deparse.c test/deparse_tests.c $(ARLIB)
$(CC) $(CFLAGS) test/deparse.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ test/deparse.c $(ARLIB)

test/fingerprint: test/fingerprint.c test/fingerprint_tests.c $(ARLIB)
# We have "-Isrc/" because this test uses pg_query_fingerprint_with_opts
$(CC) $(CFLAGS) -Isrc/ test/fingerprint.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ -Isrc/ test/fingerprint.c $(ARLIB)

test/fingerprint_opts: test/fingerprint_opts.c test/fingerprint_opts_tests.c $(ARLIB)
# We have "-Isrc/" because this test uses pg_query_fingerprint_with_opts
$(CC) $(CFLAGS) -Isrc/ test/fingerprint_opts.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ -Isrc/ test/fingerprint_opts.c $(ARLIB)

test/normalize: test/normalize.c test/normalize_tests.c $(ARLIB)
$(CC) $(CFLAGS) test/normalize.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ test/normalize.c $(ARLIB)

test/parse: test/parse.c test/parse_tests.c $(ARLIB)
$(CC) $(CFLAGS) test/parse.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ test/parse.c $(ARLIB)

test/parse_opts: test/parse_opts.c test/parse_opts_tests.c $(ARLIB)
$(CC) $(CFLAGS) test/parse_opts.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ test/parse_opts.c $(ARLIB)

test/parse_plpgsql: test/parse_plpgsql.c test/parse_tests.c $(ARLIB)
$(CC) $(CFLAGS) test/parse_plpgsql.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ test/parse_plpgsql.c $(ARLIB)

test/parse_protobuf: test/parse_protobuf.c test/parse_tests.c $(ARLIB)
$(CC) $(CFLAGS) test/parse_protobuf.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ test/parse_protobuf.c $(ARLIB)

test/parse_protobuf_opts: test/parse_protobuf_opts.c test/parse_opts_tests.c $(ARLIB)
$(CC) $(CFLAGS) test/parse_protobuf_opts.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ test/parse_protobuf_opts.c $(ARLIB)

test/scan: test/scan.c test/scan_tests.c $(ARLIB)
$(CC) $(CFLAGS) test/scan.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ test/scan.c $(ARLIB)

test/split: test/split.c test/split_tests.c $(ARLIB)
$(CC) $(CFLAGS) test/split.c $(ARLIB)
$(CC) $(CFLAGS) -o $@ test/split.c $(ARLIB)

0 comments on commit 3b32e02

Please sign in to comment.