diff --git a/Makefile b/Makefile index a3b36c8..6defd1a 100644 --- a/Makefile +++ b/Makefile @@ -11,14 +11,14 @@ OBJS = $(SRCS:.c=.o) # create a list of object files from the source files all: main.elf main.elf: $(OBJS) - $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ %.o: %.c $(HEADERS) - $(CC) $(CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) -c $< -o $@ clean: - rm -f main.elf $(OBJS) + rm -f main.elf $(OBJS) # Optionally add a rule to flash your device (if applicable) -# flash: $(EXEC) -# ./flash_tool $(EXEC) # This is just a placeholder if needed \ No newline at end of file +# flash: main.elf +# ./flash_tool main.elf # This is just a placeholder if needed \ No newline at end of file