Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
16bb13cf
Commit
16bb13cf
authored
Jul 05, 2023
by
Kent Kostelac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed usage of old-fashioned suffix rules. See make manual 10.7
parent
b93d80fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
libasn1compiler/asn1c_save.c
libasn1compiler/asn1c_save.c
+15
-17
No files found.
libasn1compiler/asn1c_save.c
View file @
16bb13cf
...
...
@@ -266,23 +266,21 @@ asn1c__save_example_mk_makefile(arg_t *arg, const asn1c_dep_chainset *deps,
}
}
safe_fprintf
(
mkf
,
"
\n\n
all: $(ASN_PROGRAM)
\n
"
"
\n
$(ASN_PROGRAM): $(ASN_LIBRARY) $(ASN_PROGRAM_SRCS:.c=.o)"
"
\n\t
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(ASN_PROGRAM) "
"$(ASN_PROGRAM_SRCS:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
\n
"
"
\n
$(ASN_LIBRARY): $(ASN_MODULE_SRCS:.c=.o)"
"
\n\t
$(AR) rcs $@ $(ASN_MODULE_SRCS:.c=.o)
\n
"
"
\n
.SUFFIXES:"
"
\n
.SUFFIXES: .c .o
\n
"
"
\n
.c.o:"
"
\n\t
$(CC) $(CFLAGS) -o $@ -c $<
\n
"
"
\n
clean:"
"
\n\t
rm -f $(ASN_PROGRAM) $(ASN_LIBRARY)"
"
\n\t
rm -f $(ASN_MODULE_SRCS:.c=.o) $(ASN_PROGRAM_SRCS:.c=.o)
\n
"
"
\n
regen: regenerate-from-asn1-source
\n
"
"
\n
regenerate-from-asn1-source:
\n\t
"
);
safe_fprintf
(
mkf
,
"
\n\n
all: $(ASN_PROGRAM)
\n
"
"
\n
$(ASN_PROGRAM): $(ASN_LIBRARY) $(ASN_PROGRAM_SRCS:.c=.o)"
"
\n\t
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(ASN_PROGRAM) "
"$(ASN_PROGRAM_SRCS:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
\n
"
"
\n
$(ASN_LIBRARY): $(ASN_MODULE_SRCS:.c=.o)"
"
\n\t
$(AR) rcs $@ $(ASN_MODULE_SRCS:.c=.o)
\n
"
"
\n
%%.o: %%.c"
"
\n
$(CC) $(CFLAGS) -o $@ -c $<
\n
"
"
\n
clean:"
"
\n\t
rm -f $(ASN_PROGRAM) $(ASN_LIBRARY)"
"
\n\t
rm -f $(ASN_MODULE_SRCS:.c=.o) $(ASN_PROGRAM_SRCS:.c=.o)
\n
"
"
\n
regen: regenerate-from-asn1-source
\n
"
"
\n
regenerate-from-asn1-source:
\n\t
"
);
for
(
int
i
=
0
;
i
<
argc
;
i
++
)
{
safe_fprintf
(
mkf
,
"%s%s"
,
i
?
" "
:
""
,
argv
[
i
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment