8
Link editing
- #include "perm.h"
- #include <stdio.h>
- main() {
- int i, j;
- for( i = -1; i < 8; ++i ) {
- for( j = -1; j <= i +1; ++j )
- printf(" %d", perm( i, j ));
- printf("\n");
- }
- }
- ALL=testperm
- SRCS=testperm.c fact.c perm.c
- OBJS=$(SRCS:.c=.o)
- CC=gcc
- CFLAGS=-DDEBUG -g
- all: $(ALL)
- $(ALL): $(OBJS)
- $(CC) $^ -o $@ $(LDFLAGS)
- .PHONY: clean wipe
- clean:
- rm -f $(OBJS)
- wipe: clean
- rm -f $(ALL)
Comments