diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -1,21 +1,27 @@ .POSIX: -.SUFFIXES: +.SUFFIXES: .c .o CFLAGS=-Wall CC=cc debug=-g -DDEBUG -DLOCAL -fs=thing.c -all: thing +OBJS=bee.o irc.o util.o -thing: $(fs) - $(CC) $(CFLAGS) -o thing $(fs) +all: apiobot +apiobot: $(OBJS) + $(CC) $(CFLAGS) -o apiobot $(OBJS) debug: - $(CC) $(CFLAGS) $(debug) -o thing $(fs) + $(CC) $(CFLAGS) $(debug) -o apiobot $(OBJS) + +.c.o: + $(CC) -c $< $(CFLAGS) -o $@ run: all - ./thing + ./apiobot dr: debug - ./thing + ./apiobot + +clean: + rm *.o apiobot |