remove target
This commit is contained in:
parent
1ecdc57a75
commit
6ef3d7c0ed
10
Makefile
10
Makefile
|
@ -1,14 +1,14 @@
|
|||
CFLAGS= -Wall -Wextra -Wfatal-errors -g3
|
||||
LDFLAGS= -s
|
||||
OBJS=
|
||||
RSFLAGS= --target=x86_64-unknown-linux-gnu --crate-type=staticlib
|
||||
OBJS= example
|
||||
RSFLAGS=
|
||||
|
||||
all: example
|
||||
all: $(OBJS)
|
||||
example: main.o librs.a
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
lib%.a: %.rs
|
||||
rustc --target=x86_64-unknown-linux-gnu --crate-type=staticlib $^
|
||||
rustc --crate-type=staticlib $^
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $^
|
||||
clean:
|
||||
$(RM) $(OBJS) example *.o librs.a
|
||||
$(RM) $(OBJS) *.o librs.a
|
||||
|
|
Loading…
Reference in New Issue
Block a user