even better BSD make compat ;)
This commit is contained in:
parent
276577dd52
commit
b295650a73
@ -107,8 +107,10 @@ $(SOCKET_OBJS) $(BUFFER_OBJS) $(MMAP_OBJS) $(TEXTCODE_OBJS) \
|
|||||||
$(TAIA_OBJS) $(TAI_OBJS) $(CASE_OBJS) $(ARRAY_OBJS) $(MULT_OBJS) \
|
$(TAIA_OBJS) $(TAI_OBJS) $(CASE_OBJS) $(ARRAY_OBJS) $(MULT_OBJS) \
|
||||||
$(IO_OBJS)
|
$(IO_OBJS)
|
||||||
|
|
||||||
|
CFLAGS+=-I.
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(DIET) $(CC) -c $< -o $@ -I. $(CFLAGS)
|
$(DIET) $(CC) -c $< $(CFLAGS)
|
||||||
|
|
||||||
%.a:
|
%.a:
|
||||||
ar cr $@ $^
|
ar cr $@ $^
|
||||||
@ -117,7 +119,7 @@ $(IO_OBJS)
|
|||||||
t.o: iopause.h
|
t.o: iopause.h
|
||||||
|
|
||||||
t: t.o libowfat.a
|
t: t.o libowfat.a
|
||||||
$(DIET) $(CC) -g -o $@ $^
|
$(DIET) $(CC) -g -o $@ t.o libowfat.a
|
||||||
|
|
||||||
.PHONY: all clean tar install rename
|
.PHONY: all clean tar install rename
|
||||||
clean:
|
clean:
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
#include "str.h"
|
#include "str.h"
|
||||||
|
|
||||||
void array_cats(array* to,const char* from) {
|
void array_cats(array* to,const char* from) {
|
||||||
array_catb(to,from,strlen(from));
|
array_catb(to,from,str_len(from));
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
#include "str.h"
|
#include "str.h"
|
||||||
|
|
||||||
void array_cats0(array* to,const char* from) {
|
void array_cats0(array* to,const char* from) {
|
||||||
array_catb(to,from,strlen(from)+1);
|
array_catb(to,from,str_len(from)+1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user