CC = gcc CFLAGS = -I../include LDFLAGS = -lncurses clean: rm *~ *.o my_ncurses: $(CC) $(CFLAGS) -c my_ncurses.c my_menu: $(CC) $(CFLAGS) -c my_menu.c my_form: $(CC) $(CFLAGS) -c my_form.c menu-test: my_menu my_ncurses $(CC) $(CFLAGS) -lmenu $(LDFLAGS) \ my_menu.o \ my_ncurses.o \ menu-test.c \ -o menu-test form-test: my_form my_ncurses $(CC) $(CFLAGS) -lform $(LDFLAGS) \ my_form.o \ my_ncurses.o \ form-test.c \ -o form-test