biggest change ever

This commit is contained in:
jacekpoz 2024-02-11 22:19:27 +01:00
parent 41d9f87eab
commit 8bfacabcd0
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -27,13 +27,13 @@ dirs:
mkdir -p $(BIN) mkdir -p $(BIN)
$(NAME): $(OBJ) $(NAME): $(OBJ)
$(CC) -o $(BIN)/$@ $(addprefix $(BIN)/, $^) $(LDFLAGS) $(CC) $(addprefix $(BIN)/, $^) $(LDFLAGS) -o $(BIN)/$@
%.so: modules/%.c $(LIB) %.so: modules/%.c $(LIB)
$(CC) -o $(BIN)/$@ $^ -shared -fPIC $(CFLAGS) $(LDFLAGS) $(CC) $^ -shared -fPIC $(CFLAGS) $(LDFLAGS) -o $(BIN)/$@
%.o: %.c %.o: %.c
$(CC) -o $(BIN)/$@ -c $< $(CFLAGS) $(CC) -c $< $(CFLAGS) -o $(BIN)/$@
clean: clean_modules clean: clean_modules
rm -rf $(addprefix $(BIN)/, $(OBJ)) rm -rf $(addprefix $(BIN)/, $(OBJ))