# # Hi, class, # # This Makefile will compile ps.c in any directory. # # Note that the CFLAGS variable includes some important definitions. # You should use this CFLAGS line with all programs compiled with mcc # or else you may get some wierd type incompatibilities. # # -- Mark CC = mcc CFLAGS = -D_MINIX -D_POSIX_SOURCE -D__minix CCLD = $(CC) $(CFLAGS) MSRC = /usr/local/minix/smx/src w: w.c $(MX_INCL)/minix/config.h $(MSRC)/kernel/const.h \ $(MSRC)/kernel/type.h $(MSRC)/kernel/proc.h $(MSRC)/mm/mproc.h \ $(MSRC)/fs/fproc.h $(MSRC)/fs/const.h $(CCLD) -o $@ -S 16kw w.c ps: ps.c $(MX_INCL)/minix/config.h $(MSRC)/kernel/const.h \ $(MSRC)/kernel/type.h $(MSRC)/kernel/proc.h $(MSRC)/mm/mproc.h \ $(MSRC)/fs/fproc.h $(MSRC)/fs/const.h $(CCLD) -o $@ -S 16kw ps.c