Commit 16bb13cf authored by Kent Kostelac's avatar Kent Kostelac

Removed usage of old-fashioned suffix rules. See make manual 10.7

parent b93d80fd
...@@ -266,23 +266,21 @@ asn1c__save_example_mk_makefile(arg_t *arg, const asn1c_dep_chainset *deps, ...@@ -266,23 +266,21 @@ asn1c__save_example_mk_makefile(arg_t *arg, const asn1c_dep_chainset *deps,
} }
} }
safe_fprintf( safe_fprintf(
mkf, mkf,
"\n\nall: $(ASN_PROGRAM)\n" "\n\nall: $(ASN_PROGRAM)\n"
"\n$(ASN_PROGRAM): $(ASN_LIBRARY) $(ASN_PROGRAM_SRCS:.c=.o)" "\n$(ASN_PROGRAM): $(ASN_LIBRARY) $(ASN_PROGRAM_SRCS:.c=.o)"
"\n\t$(CC) $(CFLAGS) $(CPPFLAGS) -o $(ASN_PROGRAM) " "\n\t$(CC) $(CFLAGS) $(CPPFLAGS) -o $(ASN_PROGRAM) "
"$(ASN_PROGRAM_SRCS:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)\n" "$(ASN_PROGRAM_SRCS:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)\n"
"\n$(ASN_LIBRARY): $(ASN_MODULE_SRCS:.c=.o)" "\n$(ASN_LIBRARY): $(ASN_MODULE_SRCS:.c=.o)"
"\n\t$(AR) rcs $@ $(ASN_MODULE_SRCS:.c=.o)\n" "\n\t$(AR) rcs $@ $(ASN_MODULE_SRCS:.c=.o)\n"
"\n.SUFFIXES:" "\n%%.o: %%.c"
"\n.SUFFIXES: .c .o\n" "\n$(CC) $(CFLAGS) -o $@ -c $<\n"
"\n.c.o:" "\nclean:"
"\n\t$(CC) $(CFLAGS) -o $@ -c $<\n" "\n\trm -f $(ASN_PROGRAM) $(ASN_LIBRARY)"
"\nclean:" "\n\trm -f $(ASN_MODULE_SRCS:.c=.o) $(ASN_PROGRAM_SRCS:.c=.o)\n"
"\n\trm -f $(ASN_PROGRAM) $(ASN_LIBRARY)" "\nregen: regenerate-from-asn1-source\n"
"\n\trm -f $(ASN_MODULE_SRCS:.c=.o) $(ASN_PROGRAM_SRCS:.c=.o)\n" "\nregenerate-from-asn1-source:\n\t");
"\nregen: regenerate-from-asn1-source\n"
"\nregenerate-from-asn1-source:\n\t");
for(int i = 0; i < argc; i++) { for(int i = 0; i < argc; i++) {
safe_fprintf(mkf, "%s%s", i ? " " : "", argv[i]); safe_fprintf(mkf, "%s%s", i ? " " : "", argv[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment