# Optional add #
################
IPATH = -I. # path of include file
-OBJOPT = -ggdb -g3 -Wall -Wstrict-prototypes # option for obj
+OBJOPT = -ggdb -g3 -Wall -Wstrict-prototypes -DDEBUG # option for obj
EXEOPT = -ggdb -g3 -Wall -Wstrict-prototypes # option for exe (-lefence ...)
LPATH = -L. # path for librairies ...
UNCOMP = gzip -df
STRIP = strip
-#CFLAGS = $(OBJOPT) $(IPATH) `pkg-config --cflags gtk+-2.0` -DAPISTRING=FOO
-CFLAGS = $(OBJOPT) $(IPATH) `pkg-config --cflags gtk+-2.0` -DAPISTRING=`if [ ! -e api-horkfile ]; then mktemp -u aXXXXXXXXXXXXXX > api-horkfile; fi; head -n1 api-horkfile`
+CFLAGS = $(OBJOPT) $(IPATH) `pkg-config --cflags gtk+-2.0`
LDFLAGS = $(EXEOPT) $(LPATH) `pkg-config --libs gtk+-2.0`
.SUFFIXES: .h.Z .c.Z .h.gz .c.gz .c.z .h.z
##############################
all: $(NAME)
- rm -f api-horkfile
$(NAME): $(OBJS) $(SRC) $(INCL)
$(CC) $(OBJS) $(LDFLAGS) -o $(NAME)
# $(STRIP) ./$(NAME) # if you debug ,don't strip ...
depend:
gcc $(IPATH) -MM $(SRC)
clean:
- -$(RM) $(NAME) $(OBJS) api-horkfile *~
+ -$(RM) $(NAME) $(OBJS)
fclean:
-$(RM) $(NAME)
comp: clean