Hi..
I'm programming c-code and all methods is working fine.. Then I would like to include headers and global values which should be possible to be edited through every existing file.. But when I include one of my files in the makefile it says:
The makefile looks like this# make
---> make: Circular staff.o <- staff.o dependency dropped.
---> make: `edit' is up to date.
The staff.h looks like this..objects = main.o drive.o staff.o
edit : $(objects)
cc -lm -o edit $(objects)
main.o : global.h
drive.o : drive.h global.h
staff.o : staff.o global.h
.PHONY: clean
clean :
rm edit $(objects)
If anybody know what might be the problem, please write..#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifndef STAFF_H
#define STAFF_H
// Staff.c
char *find_staffmember (char *, char[], int);
//char *appendchar(char *, size_t, char);
int staff_update(char[], char[], char[]);
#endif
- Danny