MF= Makefile CC= xlc_r CFLAGS= -q64 -I/usr/local/packages/include LIBS= -L/usr/local/packages/lib -lhpcxalarm -lm LFLAGS= $(CFLAGS) $(LIBS) EXE= testalarm SRC= \ testalarm.c # # No need to edit below this line # .SUFFIXES: .SUFFIXES: .c .o OBJ= $(SRC:.c=.o) .c.o: $(CC) $(CFLAGS) -c $< all: $(EXE) $(EXE): $(OBJ) $(CC) $(LFLAGS) -o $@ $(OBJ) $(OBJ): $(MF) clean: rm -f $(OBJ) $(EXE) core