remove target

This commit is contained in:
corey 2024-01-09 13:06:53 -06:00
parent 1ecdc57a75
commit 6ef3d7c0ed

View File

@ -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