Advertisement
Mark2020H

The Makefile part three of three to the GUI mechanism for controlling SSH and Apache webservers

Dec 8th, 2024
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.73 KB | Source Code | 0 0
  1. # Part Three  of a simple GUI mechanism  to control your SSH and Apache web servers
  2. # MD Harrington  London Bexleyheath  Kent DA6 8NP UK
  3. # Links to to this plus Makfile  you can find on  git hub at this address https://github.com/markh2024/GTKServerControl
  4. # More at https://www.facebook.com/mark.harrington.14289/
  5.  
  6. # Part two   contains the glade file  for this application link is @ https://pastebin.com/Tn3jmiqH
  7.  
  8.  
  9.  
  10. CC = gcc
  11. CFLAGS = `pkg-config --cflags gtk+-3.0` -rdynamic -g
  12. LIBS = `pkg-config --libs gtk+-3.0`
  13.  
  14. SRCS = ServerGui.c
  15. OBJS = $(SRCS:.c=.o)
  16. EXEC = Servercontol
  17.  
  18. all: $(EXEC)
  19.  
  20. $(EXEC): $(OBJS)
  21.     $(CC) -o $(EXEC) $(OBJS) $(LIBS)
  22.  
  23. %.o: %.c
  24.     $(CC) $(CFLAGS) -c $< -o $@
  25.  
  26. clean:
  27.     rm -f $(EXEC) $(OBJS)
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement