CFLAGS := -Wall -Werror -g
-LDFLAGS := -g
+LDFLAGS := -g -lncurses -lssl
BIN := ../../dispense
OBJ := main.o
clean:
$(RM) $(BIN) $(OBJ)
+$(BIN): $(OBJ)
+ $(CC) -o $(BIN) $(OBJ) $(LDFLAGS)
+ chown root $(BIN)
+ chmod u+s $(BIN)
+
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)
$(CC) -M -MT $@ -o $*.d $< $(CPPFLAGS)