How to change the following Makefile so that it works for MacOS? [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . I used to do C programming in Linux. Now,I got MacBook and I want to do programming on the Mac. How should I change the following makefile ? # Makefile OBJS = main $(OBJS): $(OBJS).o # gcc -O2 -Wall $(OBJS).c -o $(OBJS) -I/usr/local/include -L/usr/local/lib64 -leggx -lX11 -lm gcc $(OBJS).c -o $(OBJS) -I/usr/local