diff --git a/Makefile b/Makefile index acc7f29..da23dba 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CFLAGS += LDFLAGS := -lm OBJECTS := obj/obcb.o obj/mongoose.o -all: obcb obcb-nbd.so live live-1chunk listen-fullmap obcb-write +all: obcb.exe obcb-nbd.so live.exe live-1chunk.exe listen-fullmap.exe obcb-write.exe test: obcb ./obcb @@ -19,23 +19,23 @@ bot-run: bot listen-fullmap-run: listen-fullmap ./listen-fullmap -obcb-write: ./src/obcb-write.c $(OBJECTS) - $(CC) $(CFLAGS) $(OBJECTS) src/obcb-write.c $(LDFLAGS) -o obcb-write -lraylib -lm +obcb-write.exe: ./src/obcb-write.c $(OBJECTS) + $(CC) $(CFLAGS) $(OBJECTS) src/obcb-write.c $(LDFLAGS) -o $@ -lraylib -lm -bot: ./src/bot.c $(OBJECTS) - $(CC) $(CFLAGS) $(OBJECTS) src/bot.c $(LDFLAGS) -o bot -lraylib -lm +bot.exe: ./src/bot.c $(OBJECTS) + $(CC) $(CFLAGS) $(OBJECTS) src/bot.c $(LDFLAGS) -o $@ -lraylib -lm -listen-fullmap: ./src/listen-fullmap.c $(OBJECTS) - $(CC) $(CFLAGS) $(OBJECTS) src/listen-fullmap.c $(LDFLAGS) -o listen-fullmap -lraylib -lm +listen-fullmap.exe: ./src/listen-fullmap.c $(OBJECTS) + $(CC) $(CFLAGS) $(OBJECTS) src/listen-fullmap.c $(LDFLAGS) -o $@ -lraylib -lm -live: ./src/live.c $(OBJECTS) - $(CC) $(CFLAGS) $(OBJECTS) src/live.c $(LDFLAGS) -o live -lraylib -lm +live.exe: ./src/live.c $(OBJECTS) + $(CC) $(CFLAGS) $(OBJECTS) src/live.c $(LDFLAGS) -o $@ -lraylib -lm -live-1chunk: ./src/live-1chunk.c $(OBJECTS) - $(CC) $(CFLAGS) $(OBJECTS) src/live-1chunk.c $(LDFLAGS) -o live-1chunk -lraylib -lm +live-1chunk.exe: ./src/live-1chunk.c $(OBJECTS) + $(CC) $(CFLAGS) $(OBJECTS) src/live-1chunk.c $(LDFLAGS) -o $@ -lraylib -lm -obcb: lib $(OBJECTS) - $(CC) $(CFLAGS) $(OBJECTS) src/main.c $(LDFLAGS) -o obcb +obcb.exe: lib $(OBJECTS) + $(CC) $(CFLAGS) $(OBJECTS) src/main.c $(LDFLAGS) -o $@ nbd: obcb-nbd.so nbdkit --filter=blocksize-policy -fv ./obcb-nbd.so blocksize-error-policy=error @@ -46,7 +46,7 @@ obcb-nbd.so: src/obcb-nbd.c $(OBJECTS) lib: $(OBJECTS) clean: - $(RM) $(OBJECTS) obcb ./live ./live-1chunk ./bot + $(RM) $(OBJECTS) obcb.exe obcb-nbd.so live.exe live-1chunk.exe listen-fullmap.exe obcb-write.exe obj/%.o: src/%.c $(CC) $(CFLAGS) -c $^ -o $@